491b80ff0b55244296c08c71feaf2cea60fb5292

Author: Joel Perras

Date: 2009-01-08 23:55:24 -0500

Adding controller callback snippets & Controller::render() snippet.

diff --git a/Snippets/$this->render().tmSnippet b/Snippets/$this->render().tmSnippet new file mode 100644 index 0000000..cb7dfb2 --- /dev/null +++ b/Snippets/$this->render().tmSnippet @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>content</key> + <string>\$this-&gt;render(${1:'${2:action}'}$3); +$0</string> + <key>name</key> + <string>$this-&gt;render()</string> + <key>scope</key> + <string>source.php.cake</string> + <key>tabTrigger</key> + <string>ren</string> + <key>uuid</key> + <string>51133511-DD51-4DAD-9F25-E746F46A5544</string> +</dict> +</plist> diff --git a/Snippets/Controller::afterFilter().tmSnippet b/Snippets/Controller::afterFilter().tmSnippet new file mode 100644 index 0000000..7361316 --- /dev/null +++ b/Snippets/Controller::afterFilter().tmSnippet @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>content</key> + <string>/** + * Controller afterFilter callback. + * Called after the controller action is run and rendered. + * + * @return void + */ +function afterFilter() { + $1 +} +$0</string> + <key>name</key> + <string>Controller::afterFilter()</string> + <key>scope</key> + <string>source.php.cake</string> + <key>tabTrigger</key> + <string>after</string> + <key>uuid</key> + <string>5F0F193F-A568-468D-B076-6DC58E51AD0D</string> +</dict> +</plist> diff --git a/Snippets/Controller::beforeFilter().tmSnippet b/Snippets/Controller::beforeFilter().tmSnippet new file mode 100644 index 0000000..38cfd45 --- /dev/null +++ b/Snippets/Controller::beforeFilter().tmSnippet @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>content</key> + <string>/** + * Controller beforeFilter callback. + * Called before the controller action. + * + * @return void + */ +function beforeFilter() { + $1 +} +$0</string> + <key>name</key> + <string>Controller::beforeFilter()</string> + <key>scope</key> + <string>source.php.cake</string> + <key>tabTrigger</key> + <string>before</string> + <key>uuid</key> + <string>9BA2A212-CD0C-4B76-90EA-08EC0D216A8B</string> +</dict> +</plist> diff --git a/Snippets/Controller::beforeRender().tmSnippet b/Snippets/Controller::beforeRender().tmSnippet new file mode 100644 index 0000000..97835ef --- /dev/null +++ b/Snippets/Controller::beforeRender().tmSnippet @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>content</key> + <string>/** + * Controller afterFilter callback. + * Called after the controller action is run, but before the view is rendered. + * + * @return void + */ +function beforeRender() { + $1 +} +$0</string> + <key>name</key> + <string>Controller::beforeRender()</string> + <key>scope</key> + <string>source.php.cake</string> + <key>tabTrigger</key> + <string>before</string> + <key>uuid</key> + <string>58DADFAD-1E71-4D39-B139-9B0A65E2F681</string> +</dict> +</plist> diff --git a/info.plist b/info.plist index da63154..39ef4fa 100644 --- a/info.plist +++ b/info.plist @@ -64,9 +64,13 @@ <key>items</key> <array> <string>EE053494-C470-4D0B-8FBA-548BDD59705A</string> + <string>9BA2A212-CD0C-4B76-90EA-08EC0D216A8B</string> + <string>5F0F193F-A568-468D-B076-6DC58E51AD0D</string> + <string>58DADFAD-1E71-4D39-B139-9B0A65E2F681</string> <string>9D47CB07-6C99-41E0-A098-4521E51A411D</string> <string>D11B464A-42FB-41D3-A40B-A75F7FD70B7D</string> <string>2945B997-2C19-449F-A500-6B8B34A2ADEF</string> + <string>51133511-DD51-4DAD-9F25-E746F46A5544</string> </array> <key>name</key> <string>Controllers</string> @@ -301,6 +305,10 @@ <string>9D47CB07-6C99-41E0-A098-4521E51A411D</string> <string>D0DB044B-B4C8-48D2-9B5A-7DA354BE04C0</string> <string>2945B997-2C19-449F-A500-6B8B34A2ADEF</string> + <string>9BA2A212-CD0C-4B76-90EA-08EC0D216A8B</string> + <string>58DADFAD-1E71-4D39-B139-9B0A65E2F681</string> + <string>5F0F193F-A568-468D-B076-6DC58E51AD0D</string> + <string>51133511-DD51-4DAD-9F25-E746F46A5544</string> <string>3A46D51C-1B9D-4A7F-98F3-E38C3243B134</string> <string>E92E5F5B-B9B0-49CB-825E-8A7B9B68B1F2</string> <string>F213051B-2625-4270-A05A-1E5E45FA3C5C</string>