Re: [ASK] Ignoring 'belongsTo' inside model

2011-11-11 Thread thom
On Fri, Nov 11, 2011 at 2:23 PM, Andras Kende and...@kende.com wrote: There are multiple way to do this.. unbindModel is a very easy, just add right before paginate code : $this-Topic-unbindModel(array('belongsTo' = array('Category'), false));

Re: Help using paginator

2011-11-11 Thread thom
On Thu, Nov 10, 2011 at 5:25 PM, euromark dereurom...@googlemail.comwrote: two questions: a)why are you using both find(all) and paginate? b) why do you use lowercase model name in paginate()? +1 function index(){ $this-paginate('Equipos'); } -- Regards,,, thom

Re: How to use tinymce plugin?

2011-11-11 Thread thom
On Fri, Nov 11, 2011 at 12:36 AM, andrewperk andrewp...@gmail.com wrote: I also had trouble using tinymce. I then tried yui's rich text editor and ran into a lot of styling issues and conflicts. Finally I found ckeditor: http://ckeditor.com/. It works flawlessly for me and is very easy to

Re: Paginator Links, need urgent help

2011-11-11 Thread heohni
Great Thanks!! On 10 Nov., 18:06, Andras Kende and...@kende.com wrote: You might want to add $options['direction'] as: ?php echo $this-Paginator-sort($text, 'OBJ_PREIS', array('direction' = 'desc'));? Andras Kende http//www.kende.com On Nov 10, 2011, at 9:23 AM, heohni wrote: Hi,

Your tmp directory is NOT writeable.

2011-11-11 Thread Zach
Hi All, I hit a snag while trying to setup Linux users. Maybe you can help. Here's what I did: I created a user. useradd tpatel I created a group. groupadd developers I added the user to the group. usermod -G developers tpatel I changed the ownership of my app's root dev directory

Re: User registration

2011-11-11 Thread lucky vicky
http://book.cakephp.org/view/1261/login http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html?highlight=register http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org To unsubscribe from this group, send email to

Re: Help using paginator

2011-11-11 Thread AD7six
On Nov 9, 2:21 pm, Jean Luis Morillo jeanluis.mori...@gmail.com wrote: Hello Im getting this error message when trying to paginate. Warning (512): Controller::paginate() - can't find model equipos in controller EquiposController [CORE\cake\libs\controller \controller.php, line 1104]

Re: Your tmp directory is NOT writeable.

2011-11-11 Thread AD7six
On Nov 11, 9:27 am, Zach zach.mar...@gmail.com wrote: Hi All, I hit a snag while trying to setup Linux users. Maybe you can help. Here's what I did: I created a user. useradd tpatel I created a group. groupadd developers I added the user to the group. usermod -G developers tpatel

Re: Your tmp directory is NOT writeable.

2011-11-11 Thread AD7six
On Nov 11, 9:27 am, Zach zach.mar...@gmail.com wrote: Hi All, I hit a snag while trying to setup Linux users. Maybe you can help. Here's what I did: I created a user. useradd tpatel I created a group. groupadd developers I added the user to the group. usermod -G developers tpatel

PayPal

2011-11-11 Thread Jeremy Burns
I'm using WebTechNick's PayPal plugin and have a few questions about how people generally use it. I sense I am not using to its maximum potential. If my preferred browser is Safari but I am using Firefox, PayPal directs me back to a url but opens in a new window and therefore defaults to Safari.

Re: How to use tinymce plugin?

2011-11-11 Thread Florian Krämer
Is one of your inputs a textarea? If not no editor will appear. Go and read TinyMCE's documentation. -- 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 related

Re: Auth component and admin routing confusion

2011-11-11 Thread phpMagpie
Not sure how an unsuccessful login (you say you stay on login page with error message) and creating a different login for admins and non- admins are related. If auth replies with 'wrong combinisation of username/password' then the credentials you supplied were wrong, not matter which login form

Htaccess in Cakephp 2.0

2011-11-11 Thread Điển vũ
Recently , i saw in Google Webmaster a lot pages is NOT FOUND as: http://example.com/webroot/index.php?url=authors/1781/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi test_test http://example.com/webrootposts/5978/test_test I don't know as google crawl in pages but it

Re: Htaccess in Cakephp 2.0

2011-11-11 Thread AD7six
On Nov 11, 1:05 pm, Điển vũ meotimdi...@gmail.com wrote: Recently , i saw in Google Webmaster a lot pages is NOT FOUND as: http://example.com/webroot/index.php?url=authors/1781/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi

How to fix .htaccess in cakephp 2.0

2011-11-11 Thread Điển vũ
Recently , i saw in Google Webmaster a lot pages is NOT FOUND as: http://example.com/webroot/index.php?url=authors/1781/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi test_test http://example.com/webroot/posts/5978/test_test I don't know as google crawl in pages but it

Re: How to fix .htaccess in cakephp 2.0

2011-11-11 Thread Điển vũ
CakePHP 2.0 changed in htaccess: *cakephphttps://github.com/cakephp/cakephp/tree/2.0 * / app https://github.com/cakephp/cakephp/tree/2.0/app / webroothttps://github.com/cakephp/cakephp/tree/2.0/app/webroot / .htaccess Line 5 from RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] to RewriteRule

Email template doesn't work

2011-11-11 Thread heohni
Hi, this way my email template looks like: ?php __('New Nesletter'); ?br / ?=$this-data['News']['email']?br / ?php __('Date:'); ? ?=date('d.m.Y H:i');? This email arrives in 3 lines = perfect! But this template puts all into one line: ?php __('Following data was sent:');? ?php

Re: CakePhp related domain

2011-11-11 Thread Larry E. Masters
Sandy, I am not sure where you checked on this being fair use but I an guarantee it does not fall under fair use. You have the option of removing it yourself, or as I said, I can have a take down notice sent. The Cake Software Foundation, Inc protects its trademarks and copyrights it owns and

Re: CakePhp related domain

2011-11-11 Thread phpMagpie
Is this your domain? On Nov 9, 7:20 pm, Sandy sandy.wilkins...@gmail.com wrote: I thoroughly researched this beforehand and this falls under fair use for trademarks as it is used nominatively and does not cause confusion. If not, alot of similar websites would also have to be shutdown (Google

Re: Your tmp directory is NOT writeable.

2011-11-11 Thread simo ahalshaba
I have already installed cakephp on linux, I use the Apache server, so at first I had thesame problem, my application has been installed in / var / www so I just changed thepermissions on the www cd / var / www chmod-R 777 2011/11/11 Zach zach.mar...@gmail.com Hi All, I hit a snag while

Info on manipulating layout in CakePHP

2011-11-11 Thread Yves S. Garret
I go this tid-bit and it works. But I would love to tweek this layout so that everything aligns just the way I want to. echo $this-Form-create(Provider, array('action' = 'view_admit_lookup')); echo $this-Form-input(last_name, array( 'label' = 'Doctor Last

How to cache certain data from being loaded everytime a request is made

2011-11-11 Thread DigitalDude
Hey, I was wondering if there is a chance to speed things up a little bit by improving some functions in my app. One question that comes to mind is for example a sidebar. Currently, I run some finds and gather some data for the sidebar (latest news, status of the user, number of notifications

Re: Info on manipulating layout in CakePHP

2011-11-11 Thread DigitalDude
What exactly is the question here? Do you want to get rid of the submit button or what is your aim? Regards On 11 Nov., 16:45, Yves S. Garret yoursurrogate...@gmail.com wrote: I go this tid-bit and it works.  But I would love to tweek this layout so that everything aligns just the way I want

Re: Auth component and admin routing confusion

2011-11-11 Thread driss bounouar
Thank you for helping but I'm sorry I can't use your help right now I've lost my laptop which contain everything :( bad luck I need to get a new one then try the things You said thank you any way On Fri, Nov 11, 2011 at 10:15 AM, phpMagpie p...@webbedit.co.uk wrote: Not sure how an

Re: Info on manipulating layout in CakePHP

2011-11-11 Thread Yves S. Garret
I want to have it right next to the text box. I tried creating a class in my CSS that would do that, but as you can see, there is another outer div around the previous div. I'm sure that one can dictate how the outer div is created (if at all), I just don't know where to look in order to make

Re: Info on manipulating layout in CakePHP

2011-11-11 Thread DigitalDude
Ok assuming you are using cake 1.3 you should use this code: echo $this-Form-submit('Search', array( 'class' = 'input_style', 'div' = false )); On 11 Nov., 16:59, Yves S. Garret yoursurrogate...@gmail.com wrote: I want to have it right next to the text box.  I tried creating a class

Validation rules question

2011-11-11 Thread heohni
Hi, var $validate = array( 'ben_name' = array( 'required' = array('rule' = 'notEmpty', 'message' = 'EmptyName') ), 'ben_email' = array( 'required' = array('rule' = 'notEmpty', 'message' = 'EmptyEmail'), 'email' = array('rule' =

Re: Your tmp directory is NOT writeable.

2011-11-11 Thread DigitalDude
I hope you mean your local dev environment and not your production server... just change the permissions on the tmp directory, NOTHING else! On 11 Nov., 10:26, simo ahalshaba ahalshaba.moha...@gmail.com wrote: I have already installed cakephp on linux, I use the Apache server, so at first I

Re: Your tmp directory is NOT writeable.

2011-11-11 Thread Zach
Changing the 'other' permission level to 7 (wrx) on the tmp directory did the trick! Thanks! On Nov 11, 3:23 am, AD7six andydawso...@gmail.com wrote: On Nov 11, 9:27 am, Zach zach.mar...@gmail.com wrote: Hi All, I hit a snag while trying to setup Linux users. Maybe you can help.

Re: Info on manipulating layout in CakePHP

2011-11-11 Thread Yves S. Garret
Where did you get that? I'll need to finagle with this thing for a while to get it right. What it does now is simply put the input and button one on top of the other (they should be side-by-side). The links (which I neglected to show in this case) are not on their own line. On Fri, Nov 11,

Re: Info on manipulating layout in CakePHP

2011-11-11 Thread Yves S. Garret
Ok, I think this might help me (I hope). I'll get back to this thread if I have questions. http://book.cakephp.org/view/182/Form On Fri, Nov 11, 2011 at 11:40 AM, Yves S. Garret yoursurrogate...@gmail.com wrote: Where did you get that? I'll need to finagle with this thing for a while to

Re: Info on manipulating layout in CakePHP

2011-11-11 Thread DigitalDude
For Cake 1.3, refer to this guide on the Form helper: http://book.cakephp.org/#!/view/1383/Form You can use the div = false option in nearly every form element. If you want to place an input and the submit button side by side, I think you have to make the div surrounding the input field (or as

CakePHP in GCI2011

2011-11-11 Thread goluhaque
Are there any plans of CakePHP participating as mentor in Google Code In 2011? IF not, may I suggest the same? http://www.google-melange.com/gci/homepage/google/gci2011 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: CakePhp related domain

2011-11-11 Thread Sandy
Yes, this domain is mine. I am a CakePHP developer and wanted to blog about my experience, but I have not been able to find time to do so. I re-researched and feel fair, nominative use is valid in this case. Nominative fair use is established when: - The product cannot be readily identified

Re: Validation rules question

2011-11-11 Thread Điển vũ
Use required = true , 'ben_password' = array( 'required' = array('rule' = 'notEmpty', 'message' = 'EmptyPassword','required'=true) ) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: How to cache certain data from being loaded everytime a request is made

2011-11-11 Thread Jeremy Burns | Class Outfit
Ever heard of a session? Jeremy Burns Class Outfit http://www.classoutfit.com On 11 Nov 2011, at 15:50, DigitalDude wrote: Hey, I was wondering if there is a chance to speed things up a little bit by improving some functions in my app. One question that comes to mind is for example a

Re: Validation rules question

2011-11-11 Thread Điển vũ
You set 'last'= true at mistake place . -- 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 related questions. To unsubscribe from this group, send email to

Re: CakePhp related domain

2011-11-11 Thread bujanga
http://simmonstrialpractice.com/fair-use-of-trademark-in-domain-name-ninth-circuit/ Seems like nominative use to me. Though I do agree that the Cake Foundation should protect its rights. On Fri, Nov 11, 2011 at 4:18 AM, phpMagpie p...@webbedit.co.uk wrote: Is this your domain? On Nov 9,

Re: How to cache certain data from being loaded everytime a request is made

2011-11-11 Thread DigitalDude
Hey, sure but I wouldn't store permission data or anything else in there what defines a users access to the system itself. For other stuff it would be ok I guess. One thing would be very interesting: is there any way to write to a session of a user from within the app when the Session ID is

Re: CakePhp related domain

2011-11-11 Thread mike karthauser
If this is the case then why not offer the domain at a nominal price - ie 20 dollars rather than 200? If your intention is to keep it away from the domain squatters then passing it on to someone to use it is worth that. Otherwise let it expire and I'll grab it then :) Incidentally, as a

Re: SEO friedly URLs

2011-11-11 Thread euromark
the urls can stll be underscore and lowercase MyController.php etc but /my_controller/action_name etc On 11 Nov., 05:16, Andras Kende and...@kende.com wrote: Kevin, seo friendly urls in cakephp are very very easy… below is the basic idea to do domain.com/video/return-of-the-jedi instead of

Re: How to cache certain data from being loaded everytime a request is made

2011-11-11 Thread Jon Bennett
Ever heard of a session? Ever heard of caching ;) try: $data = Cache::read('model.list'); if (empty($data)) { $data = $this-Model-find('list'); Cache::write('data.list', $data); } If you don't cache if for too long you won't need to worry about positively-expiring it when the

Re: CakePhp related domain

2011-11-11 Thread Sandy
That is because I have paid several years of hosting in advance. At $200 I would come out even. On Nov 11, 12:33 pm, mike karthauser mi...@brightstorm.co.uk wrote: If this is the case then why not offer the domain at a nominal price - ie 20 dollars rather than 200? If your intention is to