Re: image links in pagination

2008-11-14 Thread Sony AK
Hi Amit (amit-amit deh :), I try using this: ?php echo $paginator-prev($html-image('btn_prev_na.gif', array ('border'='0')), null, null, array('class' = 'disabled')); ? and the image for previous button not appear, just text img =src bla bla bla appear :( Regards, Sony AK http://m.mobitrek.com

how to create the element

2008-11-14 Thread jet wong
I want to show the subcategory in every product page,so I create a element to do this,but I found the only method to get data is requestAction, for example I use $this-requestAction('category/index/ mp3') to get the mp3 category, my question is how to change the param 'mp3' to 'cd',Passing from

how do I create the category element

2008-11-14 Thread jet wong
I want to show the subcategory in every product page,so I create a element to do this,but I found the only method to get data is requestAction, for example I use $this-requestAction('category/ index/ mp3') to get the mp3 category, my question is how to change the param 'mp3' to 'cd',Passing

Noob questions regarding layouts and static content

2008-11-14 Thread jeff
Hello. I have a couple questions regarding static/dynamic content mixing. I have a site to build that is largely informational, but has news, events etc. The news and events will be on pages that will have 80% static content. Can i use something like the PagesController to create pages like

CakePHP - Session Problem

2008-11-14 Thread vidyahasten
@filesource * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP (tm) Project * @package cake * @subpackage cake.app.config * @since

Re: Help needed for inline WISIWYG editor...

2008-11-14 Thread Aneesh S
thanks, but i need more options yahoo would be my choice... Aneesh S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Missing error message when submitting ajax form

2008-11-14 Thread Bart
I guess in the controller you can try to validate the formdata first, instead of just save. $this-Model-try(); is a method that does save without the eventual saving, but it does return a Boolean whether the formdata is valid or not. Depending on that result you can either render('nextPage',

Re: Missing error message when submitting ajax form

2008-11-14 Thread Bart
And code submitting the form in my first post now looks like: echo $ajax-form('Snack', 'POST', array('update'=array ('formDiv','centralText', 'url'='/updateSnack', 'before'='togglePreloader();', 'complete'='togglePreloader();')); On 14 nov, 09:46, Bart [EMAIL PROTECTED] wrote: I guess in the

Re: Variating right menu based on content

2008-11-14 Thread grigri
If it's the same header on every view, just call it in the layout. If, on the other hand, it's the same header in MOST views, use the chunks helper as above: some_view.ctp: ?php $chunks-begin('header'); ? This will end up in the header ?php $chunks-end(); ? your_layout.ctp: ?php if

Re: Help needed for inline WISIWYG editor...

2008-11-14 Thread jason m
I have had a lot of luck with fckeditor in my cake projects. There is also a tutorial for it in the bakery. On Nov 14, 5:30 pm, Aneesh S [EMAIL PROTECTED] wrote: thanks, but i need more options yahoo would be my choice... Aneesh S --~--~-~--~~~---~--~~ You

Re: acess url only from email

2008-11-14 Thread wowfka
mmm yes thanks for idea, i think better way is to force enter email. its clearer solution, then type some pass. I want to add that here is very friendly community in cakephp groups :) Best reagards On Nov 14, 1:12 am, Jon Bennett [EMAIL PROTECTED] wrote: No it is not e-mail activation, it

After validate form - missing url parameters (i.e. /books/add/category_id:51)

2008-11-14 Thread Pizgin
Hi! Address in browser /books/add/category_id:51. If after press on save button except an error - CakePHP redirect me on url /books/add and category_id:51 is missed. Can i fix it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Help needed for inline WISIWYG editor...

2008-11-14 Thread Aneesh S
ok... let me try that.. Aneesh S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: After validate form - missing url parameters (i.e. /books/add/category_id:51)

2008-11-14 Thread grigri
You don't need it in the url at that point: books_controller: function add() { if (!empty($this-data)) { // Saving, whatever here } else { $this-Book-create(); // List of parameters that can be specified in the url. // Can also handle aliases (category = category_id for

Re: Vendors in root and app folders

2008-11-14 Thread si-mon
yes... thanks... On Nov 14, 1:17 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi, I have seen two Vendors folder in the cake installation: One is in the -root- folder and the other is in the -app- folder. Is there any difference in using these two folders? The difference is that the

Re: Variating right menu based on content

2008-11-14 Thread i_Am_ToO_SeXy
obvious... /slapping myself grigri ha scritto: If it's the same header on every view, just call it in the layout. If, on the other hand, it's the same header in MOST views, use the chunks helper as above: some_view.ctp: ?php $chunks-begin('header'); ? This will end up in the header

problem With remotefunction

2008-11-14 Thread [EMAIL PROTECTED]
hi friends, I m using Remotefunction on radio group, value of that radio button is different. problem is that when i click on particular radio that radio value is pass as argument in may controller action, how can i pass dynamical argument when click on radio. my code like that: ?php

Re: Help needed for inline WISIWYG editor...

2008-11-14 Thread Aneesh S
thanks for the help I've got the yahoo editor working and ok... But now i have a problem with the add link and add image button on the toolbar... I'm getting a X^ and the functions are inlined in the textarea and flowing outside. How can i fix this... Thanks in advance.. On 11/14/08,

Re: Help needed for inline WISIWYG editor...

2008-11-14 Thread Flipflops
Good choice... and if you want a bit more go for WYMeditor http://www.wymeditor.org/ which is also jQuery based. Personally I really don't enjoy working with TinyMCE (although haven't tried the latest release) or FCKeditor On Nov 14, 7:54 am, Ketan Shah [EMAIL PROTECTED] wrote:

Fatal error: Maximum execution time of 30 seconds exceeded

2008-11-14 Thread Ernane
Bom dia, Sou designer e não entendo muito de programação PHP e Cake. Porém sei o básico dessas linguagens. Seguinte, estou tomando uma surra para publicar um site, sempre quando mando para web da o seguinte erro: Fatal error: Maximum execution time of 30 seconds exceeded Localhost funciona sem

How to observe a replaced select?

2008-11-14 Thread keymaster
I’m trying to keep all scripts at the bottom of the page, so the page will load quicker. So, at the bottom of my layout I have an $ajax-observeField() which observes a select dropdown at the top of the page. The first time the select is changed, the observeField()sends an ajax request to the

Re: More testing problems

2008-11-14 Thread validkeys
Hey Matt, thanks for the reply. I had tried deleting the tables in the test db before running the test again and still had the same problem. Hm...Any other thoughts? On Nov 14, 1:12 am, MattC [EMAIL PROTECTED] wrote: I get this all the time.  Make sure there are no tables in your test DB

Re: More testing problems

2008-11-14 Thread Howard Glynn
Try this http://debuggable.com/posts/testing-models-in-cakephp---now-let's-get-rid-of-the-unnecessary-modeltest-classes-!:4890ed55-be28-4d4a-ba4c-7fd64834cda3 I posted some code Oct 14 (scroll down in the comments) that might help you. Testing does work (and works very well) but is

Re: Fatal error: Maximum execution time of 30 seconds exceeded

2008-11-14 Thread Rafael Bandeira aka rafaelbandeira3
Tópicos em português devem ser postados no fórum pt-br. ok? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Source code of completed blog and ACL tutorial

2008-11-14 Thread mark_story
I originally posted the Acl tutorial on my site http://mark-story.com and the source is at the end of part 2. -Mark On Nov 13, 10:56 am, gfmailweb [EMAIL PROTECTED] wrote: Is there somewhere I can download the source code to a completed 1.2 Blog tutorial including the ACL portions?  That

Re: More testing problems

2008-11-14 Thread validkeys
ok cool. Thanks for the tips guys. Much appreciated! On Nov 14, 9:40 am, Howard Glynn [EMAIL PROTECTED] wrote: Try this http://debuggable.com/posts/testing-models-in-cakephp---now-let's-get... I posted some code Oct 14 (scroll down in the comments) that might help you. Testing does work

Re: Noob questions regarding layouts and static content

2008-11-14 Thread thatsgreat2345
Yes cake can do that. Essentially you will have your news view, and it will have that layout like built in. Then in the controller after doing some sort of check to see what variable in the url has been set , like a number that corresponds to a news article, then the controller will be like hey

best practices: disable/hide links which are denied by ACL?

2008-11-14 Thread dr. Hannibal Lecter
Hi all, I'm halfway through the ACL implementation (well, almost...), and I was wondering: is it better to hide the links which are denied by ACL (we're talking about the already logged-in user), or show them and give the user the Auth message not enough privileges? Obviously, hiding all the

Re: how do I create the category element

2008-11-14 Thread brian
Set the sub-category in the controller: $this-set('sub_category', ... then, in your element: $this-requestAction(category/index/${sub_category}); However, I'm not certain that I understand what you want to do, so there may be a better way to achieve your goal. Specifically, I don't understand

Re: updated to ubuntu 8.10 and cake broke

2008-11-14 Thread clemos
Btw, next time you upgrade Ubuntu, you should make sure that your Apache conf files don't get overwritten by the default ones from the package. Usually, the upgrade manager prompts you wether you want to keep your files or get the new ones, and you can see the diff between the two; At least,

Re: best practices: disable/hide links which are denied by ACL?

2008-11-14 Thread brian
If it's *only* a question of obscurity in order to clean up the interface, you could hide them using CSS and avoid a bunch of logic in the view to determine what should be output. Just add a class to the body (or nav div, etc) based on the user group. Then, lay out some style rules to hide certain

Re: RSS Subscribe

2008-11-14 Thread Josey
I just wanted to thank you again for linking me to that shell. I finally tried it as I was having the same problem on a new application and it worked wonderfully. David Persson is brilliant. On Nov 12, 7:14 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: From much searching I discovered that

Re: how do I create the category element

2008-11-14 Thread validkeys
I think i know what you mean jet. There have actually been quite a few articles written on the dangers of using requestAction. If I am going to be using something like you are using, what I will usually do is set up a function in app_controller that imports the Category model, does a find('all')

sql queries being executed in wrong order on db?

2008-11-14 Thread pigeon
Hello all, i have a cakePHP 1.1 app that, at a point, creates a record on a model (B) that is associated with another model (A) through A has many B then does a find on A. I've noticed that the new record in B does not show up on the find's result array from A, and checking debug revealed that

possible bug in router.php

2008-11-14 Thread Petr 'PePa' Pavel
Hello everyone, I'd like to share with you what I have discovered. Here's a procedure that triggers a notice level error: 1) When accessing url http://teachtheworldguitar.pp/orderItems/delete/30 OrderItemsController-isAuthorized() returns false so I'm logged off and redirected to a login

.htaccess - Can't access subdirectory

2008-11-14 Thread I Wayan Saryada
Hello, I am currently installing CakePHP on the root of my web hosting. CakePHP run well. On this domain I am also installing a phpBB forum in the domain.com/forum. But when I try to access the forum the request seems to be intercepted by CakePHP. How should I configure it so I can access the

Re: Variating right menu based on content

2008-11-14 Thread i_Am_ToO_SeXy
Checking for empty chunks in the layout is not very handy because there's too much code in layout. Too much code in layout = harder migration/implementation on new layouts I'm trying to do those checks before the layout rendering so the only code in layouts will be ?php $something_for_layout ?

Re: Variating right menu based on content

2008-11-14 Thread i_Am_ToO_SeXy
Uhm... if i check for empty chunks before the layout render (for example in App_Controller)? the only code in layout will be something like ?php $something_for_layout ? it will be easier to change layout in future. am i right? On 14 Nov, 09:51, grigri [EMAIL PROTECTED] wrote: If it's the

paginate conditions on multiple models

2008-11-14 Thread Mark Leary
I'm new to cakephp and frameworks in general. Right now I'm working with two models Systems and Ips. System hasMany Ip and Ip belongsTo System. I want to create a paginate condition for Systems that uses both models. E.g.: array(System.user like = %.$search.%, Ip.address like = %. $search.%)

Re: possible bug in router.php

2008-11-14 Thread Xavier Mathews
Thanks For The Info! I Would Try Debuging! But Let Me Read Into This More. On 11/14/2008, Petr 'PePa' Pavel [EMAIL PROTECTED] wrote: Hello everyone, I'd like to share with you what I have discovered. Here's a procedure that triggers a notice level error: 1) When accessing url

Re: .htaccess - Can't access subdirectory

2008-11-14 Thread Xavier Mathews
You said that you were installing it on the root. Is that root one or two? Is this free web hosting? Did you get an error msg? I dont think that this is a configure problem I think that you need either to be varified by the web host and cake. And Also... you may need Auth. On 11/14/2008, I

Re: possible bug in router.php

2008-11-14 Thread validkeys
what is the value of your authRedirect? On Nov 14, 12:35 pm, Petr 'PePa' Pavel [EMAIL PROTECTED] wrote: Hello everyone, I'd like to share with you what I have discovered. Here's a procedure that triggers a notice level error: 1) When accessing url  

Re: .htaccess - Can't access subdirectory

2008-11-14 Thread teknoid
place your forum in the webroot dir of your cakephp install. On Nov 14, 10:46 am, I Wayan Saryada [EMAIL PROTECTED] wrote: Hello, I am currently installing CakePHP on the root of my web hosting. CakePHP run well. On this domain I am also installing a phpBB forum in the domain.com/forum. But

Re: .htaccess - Can't access subdirectory

2008-11-14 Thread Xavier Mathews
dir as in directory root? On 11/14/2008, teknoid [EMAIL PROTECTED] wrote: place your forum in the webroot dir of your cakephp install. On Nov 14, 10:46 am, I Wayan Saryada [EMAIL PROTECTED] wrote: Hello, I am currently installing CakePHP on the root of my web hosting. CakePHP run well.

Re: .htaccess - Can't access subdirectory

2008-11-14 Thread teknoid
dir as in directory... wherever the webroot happens to be On Nov 14, 6:43 pm, Xavier Mathews [EMAIL PROTECTED] wrote: dir as in directory root? On 11/14/2008, teknoid [EMAIL PROTECTED] wrote: place your forum in the webroot dir of your cakephp install. On Nov 14, 10:46 am, I Wayan

Re: .htaccess - Can't access subdirectory

2008-11-14 Thread Xavier Mathews
Ok Now In That Dir There Should Be Root 1 or 2 Right? On 11/14/2008, teknoid [EMAIL PROTECTED] wrote: dir as in directory... wherever the webroot happens to be On Nov 14, 6:43 pm, Xavier Mathews [EMAIL PROTECTED] wrote: dir as in directory root? On 11/14/2008, teknoid [EMAIL PROTECTED]

Re: How to observe a replaced select?

2008-11-14 Thread Cuppett
What is essentially happening is that you are deleting the object from the DOM and then adding a completely new one (different internal js interpretter IDs). All the registered events are severed on the old object. You can still keep your scripts together, but you may need to wrap it with a

call Remotfunction onload

2008-11-14 Thread [EMAIL PROTECTED]
hi, I want to call remotefunction when my page is load. send me proper guide lines how i call remotefunction when my page is load. can i use JavaScript if yes then how? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

view variables

2008-11-14 Thread nikunj
hi, I want to use view variables in controller can i use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this