Re: Vendor files from Plugin folder

2011-11-30 Thread p r
it load a class from subdir of plugin >         $welcome = new Welcome(); >         debug($welcome); > > @pr what is the file and class your loading? > >  - S > > On 28 November 2011 18:19, Miles J wrote: > > > > > > > > > I still just use import.

Re: Vendor files from Plugin folder

2011-11-28 Thread p r
lock wrote: > App::uses('ClassName', 'PluginName.Vendor'); > > App::build will let you add additional paths for plugins etc. > > You don't need to use app build to be able to use classes from plugins. > > - S > On 27 Nov 2011 17:55, "p r&quo

Vendor files from Plugin folder

2011-11-27 Thread p r
Hello, it would be a pleasure if somebody could help me. I try to load files from Plugin subfolder. How should i use App::build? One solution is to add the plugins vendor subfolder to the vendors paths. Now the classes are available per App::uses. But so i have to include every external library fo

Re: baking plugins cakephp2

2011-09-06 Thread p r
but the same for baking views ends in "Error: Plugin PluginName could not be found.".. On 5 Sep., 21:16, p r wrote: > cake bake model PluginName.ModelName works. > > On 5 Sep., 21:10, p r wrote: > > > > > > > > > hello, > > >

Re: baking plugins cakephp2

2011-09-05 Thread p r
cake bake model PluginName.ModelName works. On 5 Sep., 21:10, p r wrote: > hello, > > i tried to bake a plugin in cakephp 2. the help says i could use > parameter -p to bake some models like cake bake model -p PluginName. > but the "bake Model Path" does n

baking plugins cakephp2

2011-09-05 Thread p r
hello, i tried to bake a plugin in cakephp 2. the help says i could use parameter -p to bake some models like cake bake model -p PluginName. but the "bake Model Path" does not changed to /app/Plugin/PluginName and also does not use the created Plugin folder. Has anybody some experiences to share?

Re: debug level on ajax request

2011-08-27 Thread p r
further reading http://cakephp.lighthouseapp.com/projects/42648/tickets/1941-changing-debug-level-on-runtime -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP r

Re: debug level on ajax request

2011-08-26 Thread p r
thanks this is a good point. i think it is a problem in generally, not only on ajax requests... if (isset($config['debug']) || isset($config['log'])) { $reporting = 0; if ($_this->debug) { this lines from configure config['debug'] is

Re: debug level on ajax request

2011-08-24 Thread p r
yes you're right. but the debug mode is for developing purposes and my question belongs to control the debug mode in app controller. On 22 Aug., 10:28, "Dr. Loboto" wrote: > The best way is to fix that warnings and notices. Good app never > throws this kind of shit. &g

Re: debug level on ajax request

2011-08-18 Thread p r
yes the Requesthandler is in use and the debug level is set correctly to 0 but errors and notices doesn't care. It seems the backtrace is added before the debug level is set in AppController? When i set the debug level in core.php it works as i desired. On 18 Aug., 15:06, mi...@brightstorm.co.uk

debug level on ajax request

2011-08-18 Thread p r
Hello, could anybody explain this behavior? i set in my app controller if($this->RequestHandler->isAjax()) { $this->layout = 'ajax'; $this->autoRender = false; Configure::write('debug', 0); } but notices and errors are even

console.log does not wrk with cakephp?

2011-06-25 Thread p r
Hello, my problem is simple but i don't know the answer. i try to use console.log but shows nothing in firebug. simple sites without cakephp console.log works, but when i try js scripts in cakephp with console.log not. what is the reason? thanks pete -- Our newest site for the community: CakePHP

ajax form

2011-01-16 Thread p r
I see that the ajax helper is deprecated. Is there an tutorial or something like that, where can i see the right use of Js helper and the JqueryEngineHelper? Or can anybody explane the steps to solve validation and requests? Should i write js functions to set the validationErrors from model to for

Re: Error : VALID_NOT_EMPTY

2010-11-30 Thread p r
look at http://book.cakephp.org/view/1173/notEmpty for new validation rules or http://book.cakephp.org/view/1151/Multiple-Rules-per-Field is an other good point to start with validation. On 29 Nov., 11:43, Hans Wiriya Tsai wrote: > I hv CakePHP 1.3.6 installed on Ubuntu and learning to create s

prefix for join tables

2010-11-15 Thread p r
hello, i use for plugins different table prefixes. when i want to work with habtm relationship and a join table i can't use the plugin prefix for this table. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: Help with Joins

2010-11-13 Thread p r
you want to show all offers that the user not rejected? Your SQL statement returns only all offers that the user rejected. Thats not what you want? please correct me, when i do misunderstand you. Your SQL statement returns a table with rows of offers combinded with rejects where offer id = reject

Re: mysql query transfer to cakephp

2010-11-08 Thread p r
on my approach with a query before and pass the ids, i think is problematic with pagination. because i get all node ids but i need only the ids per page. On 8 Nov., 17:50, p r wrote: > Thanks for your answer but they does not fit exactly the question. Or > could i pass the query result to

Re: mysql query transfer to cakephp

2010-11-08 Thread p r
Thanks for your answer but they does not fit exactly the question. Or could i pass the query result to $this- >paginate['Article']? Ok i could do a first query and get the ids. In the >conditions i pass this ids so i have a simple condition for pagination. But i hope for an explanation to do this

mysql query transfer to cakephp

2010-11-08 Thread p r
i want to show all articles from current user and the articles from all friends of this user and single articles from any user that the current user has promote. promote_user is a kind of twitter following and follower. SELECT DISTINCT `Article`.* FROM `nodes` AS `Article`

database prefix for plugins

2010-10-13 Thread p r
Hello, i want to use different prefixes for my application the standard app use an different prefix as a plugin. let us call us "standard_" and "plugin_" prefix. I realized that with a prefix definiton in my databas.php like 'prefix' => 'standard_' in my plugin_app_model.php in plugin folder i use