Re: Recording Emails Sent

2015-07-28 Thread thanat
Hi, assuming Cakephp 2.x: $Email = new CakeEmail(); //... all the additional email settings $result = $Email-send(); $result['message'] contains the whole email message (txt, html even with attachments), 1. you can parse this to get txt and html parts. 2. option as you wrote,

Re: Editor for Cakephp

2015-06-22 Thread thanat
I use Netbeans too, so far the best for me. Perfect for big projects. On Saturday, June 13, 2015 at 9:12:42 AM UTC+2, Pamela Whittaker wrote: What do you suggest as an editor for CakePHP please? I use Dreamweaver cs6 for PHP but that doesn't open .ctp files. Thanks -- Like Us on FaceBook

Mix of CakePHP 1.3 and CakePHP 3x ?

2015-06-22 Thread thanat
Hi All, i need advice. I have an legacy backoffice app made in cakephp 1.3. Its quite huge project and now we want to add new features. (more less standalone modules which don't affect existing app) The plan is to move whole app to newver CakePHP version (longterm plan), so we decided to

Re: Different languages in one page.

2014-10-24 Thread thanat
Hi Salines, your suggestion does not work. hower looking into __(''); implementation i found solution. i need to use direct call to I18n::translate(my string, null, null, 6, null, $myLang); in my test view when i used echo __('my string'); //this is rendered in original language defined

Re: Different languages in one page.

2014-10-24 Thread thanat
thanks for the video, it seems to work for you :) what version of CakePHP are you using ? for me in my app and CakePHP 2.5.5 it is not working this way, the __('Full name') is not translated :( strings are definetly in .po file because echo I18n::translate(Full name, null, null, 6, null,

Different languages in one page.

2014-10-23 Thread thanat
Hello all, i have a question regarding multilingual site. Hopefully someone can give me advice or point me to the right direction. the situation is: its jobsearch website in 3 different languages. User can switch between these languages. Let's say users is using the EN site. He can create

Re: Different languages in one page.

2014-10-23 Thread thanat
Hi Salines, thanks, but the getting the dynamic localized data based on the wished language i have already sorted, that is not the problem. what i need is my static translations in view file __('sample') so at the end only the profile.ctp is using the esp but the rest of elements, layout

Re: Different languages in one page.

2014-10-23 Thread thanat
i know about this viewPath solution, this is now what i need :) i'm looking for solution where i don't need to create tons of view files every-time a new language is added to application. i made example of profile edit only for sake of simplicity for my question, i need the solution for many

Re: Best practice: using class on all pages

2014-08-11 Thread thanat
I would use element for rendering and request action to get the correct data for menu. On Monday, August 11, 2014 12:26:47 AM UTC+2, Sam Clauw wrote: I want to write a class that use a left value and a depth value so it can print an ulli output for a menu. I want it to be able in my CMS

Auth component problem.

2013-10-24 Thread thanat
Hello there, i have an issue with Auth.redirect value. on my local machine when i do in my view: debug($this-Session-read('Auth.redirect')); result is: 'users/register.html' the same app on remote server gives me this output. 'users/register.html?url=users%2Fregister.html' why is the

Re: Caching part of view and user-specific sidebar problem

2012-06-19 Thread thanat
Yes, you can use requestAction from within an element. in your element you can write $data = $this-requestAction(array('controller' = 'test', 'action' = 'getdataforelementaction' )); and in your controller public function getdataforelementaction() { if (isset($this-params['requested'])) {

Re: Help on URLs

2012-06-14 Thread thanat
you use the cake router /app/config/routes.php if you want to redirect to specific action in controller Router::connect('/about_me', array('controller' = 'pages', 'action' = 'about_me')); or if you want to handle all in one action Router::connect('/:ident', array('controller' = 'pages',