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
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
$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',
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
$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
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
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
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
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
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
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
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
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 {
@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
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
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
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
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
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
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
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
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
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
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
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
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
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();
?
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
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
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
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
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:
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
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
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
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 =
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
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
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
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
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
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
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
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())
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?
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:
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
60 matches
Mail list logo