Similar to what is done here:
https://github.com/dereuromark/tools/wiki/Sending-templated-emails-with-CSS-and-inline-images
Am Mittwoch, 11. Juni 2014 13:17:47 UTC+2 schrieb Сергей Калистратов:
>
> could you tell how to get all the content to engage my function
> in renderLayout?
> $layoutFile -
could you tell how to get all the content to engage my function
in renderLayout?
$layoutFile - return path to layout file.
среда, 11 июня 2014 г., 14:56:42 UTC+4 пользователь euromark написал:
>
> You can use a helper and the
> http://book.cakephp.org/2.0/en/views/helpers.html#Helper::afterLayou
You can use a helper and
the http://book.cakephp.org/2.0/en/views/helpers.html#Helper::afterLayout
callback to do that.
Am Dienstag, 10. Juni 2014 14:16:08 UTC+2 schrieb Сергей Калистратов:
>
> I want to compress the output of the entire HTML code
> I have simple function
>
> public function sa
This sounds like a job for a Dispatcher Filter
[http://book.cakephp.org/2.0/en/development/dispatch-filters.html]
You could write a DispatcherFilter that changes the content of
$response->body on the afterDispatch event.
I've not had any first hand experience with DispatcherFilters, but this
s
I want to compress the output of the entire HTML code
I have simple function
public function sanitize_output($buffer) {
$search = array(
'/\>[^\S ]+/s', // strip whitespaces after tags, except space
'/[^\S ]+\',
'<',
'\\1'
);
$buffer = preg_replace($sea