KD2 Framework  Check-in [ced2691b90]

Overview
Comment:Smartyer: Create compile dir if it doesn't exist
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ced2691b9040520cdc6eb4bdb95ee15e38d3d32e
User & Date: bohwaz on 2023-05-30 09:28:03
Other Links: manifest | tags
Context
2023-05-30
09:28
Form: split rules arguments with ':' instead of comma check-in: 124f3131e3 user: bohwaz tags: trunk
09:28
Smartyer: Create compile dir if it doesn't exist check-in: ced2691b90 user: bohwaz tags: trunk
2023-05-23
11:54
Add method to get supported formats check-in: fd2085c651 user: bohwaz tags: trunk
Changes

Modified src/lib/KD2/Smartyer.php from [aad294ad5b] to [ad482bca9a].

192
193
194
195
196
197
198




199
200
201
202
203
204
205

	/**
	 * Sets the path where compiled templates will be stored
	 * @param string $path
	 */
	public function setCompiledDir($path)
	{




		if (!is_dir($path))
		{
			throw new \RuntimeException($path . ' is not a directory.');
		}

		if (!is_writable($path))
		{







>
>
>
>







192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209

	/**
	 * Sets the path where compiled templates will be stored
	 * @param string $path
	 */
	public function setCompiledDir($path)
	{
		if (!file_exists($path)) {
			mkdir($path, 0777, true);
		}

		if (!is_dir($path))
		{
			throw new \RuntimeException($path . ' is not a directory.');
		}

		if (!is_writable($path))
		{