Re: Help: how to use cakephp for subdomains

2011-11-07 Thread AD7six
On Nov 6, 9:54 am, Hamid Mamdoohi hamid.mamdo...@gmail.com wrote: I create subdomain for my site. I use cakephp for that but when call $html-css('style') method to add tag and run it. cake can't load css file and send error of missing controller. please help me. Doesn't sound like your

Re: Really Annoying Error

2011-11-07 Thread AD7six
On Nov 7, 2:41 am, zuha rich...@razorit.com wrote: Well it appears to have held.  Not sure why or how it worked but apparently Memcache instead of File Because the error message that you haven't found/read will be related to being unable to read a cache file or reading a cache file and the

Re: cant apply cakes contain function to this array structure

2011-11-07 Thread WebbedIT
$this-link-find('all', array('contain'=array('Icon'))); HTH, Paul. On Nov 6, 5:16 pm, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: hi everyone, i want to apply the contain function but i cant get it to work.  so this is my find in the users_ controller : $this-Link- find('all',  

Re: Help: how to use cakephp for subdomains

2011-11-07 Thread 100rk
Some apache setups needs line (in .htaccess, httpd.conf, or virthost config) RewriteBase / -- 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.

Re: Plupload and Media Plugin

2011-11-07 Thread Mo
Hey thanksfor your reply. I might not have expressed myself clearly enough (sorry). My problem is using a standard html form upload field leads to a browser timeout (javascript to keep it alive?). also some kind of visual feedback would be great to ensure the user the upload is still being

Re: Help: how to use cakephp for subdomains

2011-11-07 Thread AD7six
On Nov 7, 10:35 am, 100rk lubomir.st...@gmail.com wrote: Some apache setups needs line (in .htaccess, httpd.conf, or virthost config) RewriteBase / Have (any of) you read the question? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Need a little help with HABTM joins

2011-11-07 Thread Ernesto
Hi all. i have 2 models, Articles and Pieces. They should've been linked by a HABTM but i need to save some additional fields in the join table so i made 2x hasMany. Here's my situation: Article hasMany ArticlePiece Piece hasMany ArticlePiece ArticlePiece belongsTo Article ArticlePiece

Re: Help: how to use cakephp for subdomains

2011-11-07 Thread 100rk
Have (any of) you read the question? No, why? :-) Presence of file in proper location doesn't have to be guarantee that apache is able to serve it. I've seen several hosting providers, where CakePHP doesn't work without RewriteBase directive - for example, recent one is pagodabox.com -- Our

Re: Help: how to use cakephp for subdomains

2011-11-07 Thread AD7six
On Nov 7, 11:13 am, 100rk lubomir.st...@gmail.com wrote: Have (any of) you read the question? No, why? :-) Presence of file in proper location doesn't have to be guarantee that apache is able to serve it. I've seen several hosting providers, where CakePHP doesn't work without RewriteBase

Re: Need a little help with HABTM joins

2011-11-07 Thread Giorgio Tedesco
I'd use a condition... or use $this-Article-ArticlePiece-findById(1); -- 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

Re: Help: how to use cakephp for subdomains

2011-11-07 Thread 100rk
If he's getting that error it's highly unlikely that apache config is a factor. That's correct, he would get 500 instead. Next time, I'll read the question first (maybe). -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: can't connect to db

2011-11-07 Thread flosky
I hope its ok that I poste here instead of opening a new question. I also can't connect to the (mysql) db. I can login via mysql command line tool, so the user rights are ok. I checked phpinfo(); - mysql_pdo is installed with version 5.5.14 and enabled. Am I missing something? -flosky On 6

Re: can't connect to db

2011-11-07 Thread flosky
I just tried to set the db config via the cake shell and got this error message at the end: Fatal error: Class 'DATABASE_CONFIG' not found in /home/flosky/ Workspace/wtg2/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262 Does anyone know what that means? -flosky -- Our newest site for

Re: Need a little help with HABTM joins

2011-11-07 Thread Ernesto
this will load only related models :\ -- 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 2.0.2: HABTM relations: Edit form seems to add relations instead of replacing them

2011-11-07 Thread Mattia Manzati
Thanks for the reply. You were right. ^^ On 7 Nov, 01:29, majna majna...@gmail.com wrote: http://book.cakephp.org/2.0/en/models/associations-linking-models-tog... *unique*: If true (default value) cake will first delete existing relationship records in the foreign keys table before inserting

Re: can't connect to db

2011-11-07 Thread flosky
Ok, got it now. When I deleted the comments header of the database.php file I also deleted the '?php'. Silly me. -flosky -- 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

Re: Need a little help with HABTM joins

2011-11-07 Thread Giorgio Tedesco
Are u italian? Anyway, if I understood: Recipe HABTM Tag | *recipes_tags.*id, *recipes_tags.*recipe_id, * recipes_tags.*tag_id in ur case: *In the Model of Article* Article HABTM Piece | *article_piece*.id, *article_piece*.article_id, * article_piece*.piece_id, (*article_piece.**) About

Re: Need a little help with HABTM joins

2011-11-07 Thread WebbedIT
$this-Article-find('first', array( 'conditions'=array('Article.id'=$id), 'contain'=array('ArticlePiece'='Piece'), )); HTH, Paul. On Nov 7, 12:41 pm, Ernesto e.fanz...@gmail.com wrote: this will load only related models :\ -- Our newest site for the community: CakePHP Video Tutorials

Re: Need a little help with HABTM joins

2011-11-07 Thread Ernesto
Hi. thx for the answer. This will not solve my issue. i want to load all the Pieces, even if they're not related to the Article Model -- 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

Re: Need a little help with HABTM joins

2011-11-07 Thread Ernesto
ENG: Thanks for the effort but this isn't my problem ITA: Grazie del tentativo ma non é quello il mio problema :) -- 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

how can i check the session´s Auth for show html (login logout)

2011-11-07 Thread Ogalav
Hi, i want show in the default.ctp in the header one content that will have link for logut or login, depending on the recording session active. so, i´m doing this: views/layouts/default.ctp div id=header h1 ? if

Installing cakephp2 on Lion Server?

2011-11-07 Thread Benni Graf
Hi! Has anyone had success with installing cakephp2 on lion server? I extracted an existing project somewhere on the disk, created a subdomain in my dns-configuration and added that domain as a site in Server.app with the path pointing to my webroot-folder. Loading the domain it gives me an

Re: how can i check the session´s Auth for show html (login logout)

2011-11-07 Thread Jeremy Burns | Class Outfit
Instead of checking the session, do this: h1 ? if ($this-Session-check('Auth.User')) { echo 'Logout'; } else { echo 'Login'; }? /h1 Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burns

Re: Installing cakephp2 on Lion Server?

2011-11-07 Thread Mo
check whether your routes are set up correctly. does it happen to all your controllers or just one? On Nov 7, 2:50 pm, Benni Graf bennig...@gmail.com wrote: Hi! Has anyone had success with installing cakephp2 on lion server? I extracted an existing project somewhere on the disk, created a

Re: Need a little help with HABTM joins

2011-11-07 Thread Giorgio Tedesco
They should've been linked by a HABTM but i need to save some additional fields in the join table so i made 2x hasMany. ITA: Article e Piece dovrebbero essere linkati via HABTM, ma vuoi salvare altri campi addizionali nella Tabella ArticlePiece. ITA: ma la tabella ArticlePiece può avere

Re: how can i check the session´s Auth for show html (login logout)

2011-11-07 Thread Ogalav
Jeremy. thank for you answer.. i did it like this and worked : $session_active = $this-Session-read('Auth.User'); if (isset($session_active)){ echo 'Logout'; } else {

Re: Cannot log in using CakePHP 2.0

2011-11-07 Thread Sandy Wilkins
@John: Actually I created a new user via scaffolding, and the password did not appear hashed in the database. But I did assure myself that the user actually exists in the DB with the password I entered. @Andras: I'll try this and let you know. Thanks! On Nov 6, 12:06 pm, John

Re: Cannot log in using CakePHP 2.0

2011-11-07 Thread John
Perhaps I don't get what you say right but it still looks like exactly what I describe before. :-) If you have save the password it WILL NOT be hashed automatically, no matter if you use scaffolding or not. You must do it in code yourself. If you see the plain text password appearing in the

Re: how can i check the session´s Auth for show html (login logout)

2011-11-07 Thread Jeremy Burns | Class Outfit
You're doing something wrong. If the user is not logged $this-Session-read('Auth.User') will fail. $this-Session -check is the normal way to do it. Jeremy Burns Class Outfit http://www.classoutfit.com On 7 Nov 2011, at 15:32, Ogalav wrote: Jeremy. thank for you answer.. i did it like

Re: HasMany Through Association

2011-11-07 Thread Justin Edwards
I wanted to add an example. Freelancers as one table Companies as another table They would have a many to many relationship because a company could have many freelancers working for them, and a freelancer could work for many customers. The tricky part is companies/freelancers could have a

Re: HasMany Through Association

2011-11-07 Thread Justin Edwards
I meant a freelancer could work for many companies*. On Mon, Nov 7, 2011 at 10:24 AM, Justin Edwards justinledwa...@gmail.comwrote: I wanted to add an example. Freelancers as one table Companies as another table They would have a many to many relationship because a company could have many

Re: create() Function Dies On Sql Server?

2011-11-07 Thread Will
Hey euromark, You're absolutely right about the session component, I will change that. Anyway, I managed to solve my issue my completely deleting my database and recreating the database and all the tables from scratch, but I have no idea what that changed or why it's working now, which is

Re: security threat using this-here?

2011-11-07 Thread mark_story
Its not a danger if you don't use it. Additionally I think FormHelper escapes attributes so unless you stupidly echo it out without escaping things should be fine. So like most security issues, they are easy to solve by using your brain and escaping user supplied data. -Mark On Nov 5, 8:41 

Re: cant apply cakes contain function to this array structure

2011-11-07 Thread Tomfox Wiranata
hi paul, thanks for your help... now i have been trying to combine your code with with conditions i need for my query:              $moreLinks = $this-Link-find('all', array(                'contain' = your code..,                'conditions' = array('Link.created \''.$lastLink.'\' AND

Re: Problem Auth Component | CakePHP 2.0.2

2011-11-07 Thread Serkan Sipahi
hi again, the password is hashed in the database and it still does not work! please help me cake community Von: Serkan Sipahi serkan.sip...@yahoo.de An: cake-php@googlegroups.com cake-php@googlegroups.com Gesendet: 15:08 Sonntag, 6.November 2011

bootstrapping on windows server

2011-11-07 Thread Mike Bates
I've been developing a few cakephp apps on linux machines for a while, and have them all bootstraped to share common classes. e.g. App::build( array( 'datasources' = array( '/vol/shared.opskwan/models/datasources/' ), ) ); This works fine on all my linux boxes. However I'm now trying to

Re: cant apply cakes contain function to this array structure

2011-11-07 Thread zuha
I had this problem once and it was because the contain behavior wasn't being called (due to app_model not being named AppModel where I was setting the actsAs containable setting) But I had it happen again, when it was being called and it still didn't work. Contain is pretty buggy now if you

Want to Start a Business?

2011-11-07 Thread zuha
If any CakePHP developers are interested in starting a Saas business, we have a great setup started and are looking for partners (revenue share) who would like to build out and compete with Google apps, Salesforce and Zoho. If you're interested shoot me a private message / email and we can

Re: Problem Auth Component | CakePHP 2.0.2

2011-11-07 Thread Jeremy Burns | Class Outfit
What if you try $this-Auth-login -- small 'l' in login? Jeremy Burns Class Outfit http://www.classoutfit.com On 7 Nov 2011, at 18:55, Serkan Sipahi wrote: hi again, the password is hashed in the database and it still does not work! please help me cake community Von: Serkan

CSS not displaying Form elements correctly

2011-11-07 Thread Yves S. Garret
This issue is in my view, when I made the following code: center ?php echo $this-Form-create(Provider, array('action' = 'view_admit_lookup')); echo $this-Form-input(last_name, array('label' = 'Doctor Last Name')); echo $this-Form-submit('Search'); echo $this-Form-end(); ?

Re: Really Annoying Error

2011-11-07 Thread 0x20h
It's not recommended to use FileCache for webserver environment (it's ok for cli though). Thats because the filecache engine uses flock() to synchronize concurrent access which locks on process level. Hence, in a multithreaded environment several requests handled by the same process will

Class 'File' not Found / Class 'Folder' not found in Version 2.0 (worked OK in version 1.3)

2011-11-07 Thread porangi.chris
I wrote an import routine for pulling stuff from a csv file in version 1.3 and it worked perfectly. I have since upgraded to version 2.0 and I cannot get the same code to work. I have tried adding File to the App:uses and App:imports but this doesn't change anything. Folder was a second test

Re: Class 'File' not Found / Class 'Folder' not found in Version 2.0 (worked OK in version 1.3)

2011-11-07 Thread 100rk
https://github.com/CakeDC/utils/blob/2.0/Model/Behavior/CsvImportBehavior.php or App::uses('File', 'Utility'); App::uses('Folder', 'Utility'); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: CSS not displaying Form elements correctly

2011-11-07 Thread zuha
does it make any difference if you use echo $this-Form-end('Search'); -- 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

Re: Class 'File' not Found / Class 'Folder' not found in Version 2.0 (worked OK in version 1.3)

2011-11-07 Thread euromark
the original upgrade shell is lacking a few vital parts i added the file/folder stuff and called it legacy: https://github.com/XTAIN/cakephp/commit/57b13c1fb4a4e05080a3c5947a000ddee40d8931#L0R577 On 7 Nov., 23:08, 100rk lubomir.st...@gmail.com wrote:

RequestAction is not passing parameters after upgrade to cakephp1.3

2011-11-07 Thread CakeMan
Hi, I have my website developed in Cakephp1.1. Now i decided to upgrade it to the latest version cakephp 1.3. After upgrade i am facing problems which is understandable. I have resolve quite a few problems and somehow managed to rectify. However, i am facing a big problem. I am using

Re: Cannot log in using CakePHP 2.0

2011-11-07 Thread Sandy Wilkins
Man, Cake is hard! I understood what you just said, and did the following: 1. I set the salt setting to nothing (blank): Configure::write('Security.salt', ''); 2. I'm going to set the password to 'a', so in my login view I added the following: echo Hashed password is

Re: Cannot log in using CakePHP 2.0

2011-11-07 Thread Sandy Wilkins
I commented out all the code in the login method, and when I submit the form I see no sql queries in the bottom of the layout. I'm just sent back to the same login form, no info below. On Nov 6, 9:52 am, Andras Kende and...@kende.com wrote: The code looks good,  You could comment out the

Re: Cannot log in using CakePHP 2.0

2011-11-07 Thread Sandy Wilkins
Ok, got it to work! I guess its a combination of all these suggestions, but it finally did login when I commented the following: $this-Auth-userModel = 'Users'; // $this-Auth-fields = array('username' = 'email', 'password' = 'password'); -- commented out $this-Auth-loginAction =

Re: CakePHP v2.0.2 on IIS 5.1 (Win2k) ISAPI_rewrite not functioning

2011-11-07 Thread Matt
Arrg This was the htaccess from my webroot: IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,L] /IfModule The error is the ? after

Re: CakePHP v2.0.2 on IIS 5.1 (Win2k) ISAPI_rewrite not functioning

2011-11-07 Thread Matt Murphy
I think you're looking at a Microsoft regex issue. That is the proper rule for apache. Although, I've not found use of ? to be mistaken in, to pick a Microsoft Regex library at random, VBscript Regex 5.5. I don't know what is in use by ISAPI_rewrite. Matt Murphy On Mon, Nov 7, 2011 at 8:46

Re: Class 'File' not Found / Class 'Folder' not found in Version 2.0 (worked OK in version 1.3)

2011-11-07 Thread José Lorenzo
where's the pull request? -- 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: SecurityComponent + External POST

2011-11-07 Thread José Lorenzo
Try $this-Components-disable('Security') -- 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: SecurityComponent + External POST

2011-11-07 Thread Thiago Belem
And what about the parent::beforeFilter(), it should be on the start or the end of my PaymentsController::beforeFilter()? Before or after the disable('Security') ? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net

CakePhp related domain

2011-11-07 Thread Sandy Wilkins
Hey in case anyone is interested, this domain is for sale (or auction, not sure) at $200: www.cakephptutorials.com Go more info here: https://auctions.godaddy.com/trpItemListing.aspx?ci=44661miid=59169857 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: CakePhp related domain

2011-11-07 Thread Larry E. Masters
I like how people use a registered trademark ( http://tinyurl.com/cjgr6yf ) and then try to profit from it. Should I send you a letter now or do you prefer to remove it yourself? -- Larry E. Masters On Mon, Nov 7, 2011 at 10:46 PM, Sandy Wilkins sandy.wilkins...@gmail.comwrote: Hey in case

Re: Cannot log in using CakePHP 2.0

2011-11-07 Thread Keyner
I followed what you did but I can not work. I have 2 fields for authentication emailkey How do I resolve this? I did this at the controller public function ingresar() { $this-set('usersss',AuthComponent::password($this-data['User'] ['key'])); if ($this-Auth-login())

cant use css() method for my subdomain

2011-11-07 Thread Mamdoohi
the css() method from html class work not correctly and when I use this method for my subdomain it cant load css file correctly -- 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

Why do cake bake seems not to access my app folder?

2011-11-07 Thread Richard Neil Roque
Why do cake bake seems not to access my app folder? instead it shows the following and ask me the directory where i wanted to put my app Welcome to CakePHP v2.0.2 Console --- App : emr2.0 Path:

Re: Why do cake bake seems not to access my app folder?

2011-11-07 Thread Andras Kende
Try cake bake from inside the app folder... cd /richardfiles/projects/php/xampproot/emr2.0/app cake bake Andras Kende On Nov 8, 2011, at 1:35 AM, Richard Neil Roque wrote: Why do cake bake seems not to access my app folder? instead it shows the following and ask me the directory where i