Hi everyone,
When I work on my own PC everything works fine. But when I move the
project to a live server it doesnt save any session data in the
database anymore. The table is just empty. I'm on cake 2.0.4.
* I do have a session cookie, so that is working
* I created the db table with the cake
@Miles,
With the newest version of your uploader, when deleting a row from the db
the corresponding file should be deleted locally.
I have everything else working great except for file deletion.
What am I overlooking?
Regards,
ED
--
Our newest site for the community: CakePHP Video Tutorials
Hi,
I have this model 'Eigenschaftsarten'
class Eigenschaftsarten extends AppModel {
var $name = 'Eigenschaftsarten';
var $useTable = 'Eigenschaftsarten';
var $primaryKey = 'EIA_ID';
function getEIA_IDNames($array){
$return = $this-find('first', array(
'conditions' = array(
''
),
'fields' =
How can I get now the referer?
In $this-request-params nothing?
--
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
PHP Version 5.3.2
Cake @version $Revision: 7805 $ (1.3).
On Mar 7, 8:47 pm, Miles J mileswjohn...@gmail.com wrote:
What CakePHP and PHP version?
On Wednesday, March 7, 2012 1:57:01 PM UTC-8, Felipe Silveira wrote:
Hello
I need to make changes to a site and when I downloaded it
Is there a benefit/drawback to using
ClassRegistry::init('Objekt')-translateStrings($results); in this
situation?
--
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
I've been using $this-referer() in 2.1 with no issues.
ie. $this-redirect($this-referer());
On Thursday, March 8, 2012 5:10:28 AM UTC-5, heohni wrote:
How can I get now the referer?
In $this-request-params nothing?
--
Our newest site for the community: CakePHP Video Tutorials
On Sunday, 4 March 2012 14:06:27 UTC, 85VicWagonGuy wrote:
Thanks for pointing out that I wasn't specifically calling the wp-
load.php file, instead of making snyde comments.
I did not consider my response snyde, you asked Am I missing something, I
said Yeah
I do not use WordPress
You need to disable E_DEPRECATED warning on your php.ini
Or update your CakePHP to 2.1
Em quinta-feira, 8 de março de 2012 08h11min15s UTC-3, Felipe Silveira
escreveu:
PHP Version 5.3.2
Cake @version $Revision: 7805 $ (1.3).
On Mar 7, 8:47 pm, Miles J mileswjohn...@gmail.com wrote:
You could not use the model Eigenschaftsarten using static access, use this:
ClassRegistry::init('Eigenschaftsarten')-find(...)
Em quinta-feira, 8 de março de 2012 05h59min45s UTC-3, heohni escreveu:
Hi,
I have this model 'Eigenschaftsarten'
class Eigenschaftsarten extends AppModel {
var
I always use save($data, array('fieldList' = array())) to protect against
this problem regardless of the SecurityComponent.
Em terça-feira, 6 de março de 2012 18h06min37s UTC-3, nabeel escreveu:
Hi all,
I'm sure we've all heard about what happened with RoR and Github just
recently -
After a sleep, you were right. Thank you.
Il 05/03/2012 21:41, José Lorenzo ha scritto:
$belongsTo = array('Upload' = array('foreignKey' = 'foreign_key',
'conditions' = array('Upload.model' = 'photo')))
On Monday, March 5, 2012 12:12:10 PM UTC-4:30, muka wrote:
Hi,
I've made a nice
Hi! Thanks for your answer. I will try this!
Am Donnerstag, 8. März 2012 13:53:46 UTC+1 schrieb Rodrigo Rodrigues Moyle:
You could not use the model Eigenschaftsarten using static access, use
this:
ClassRegistry::init('Eigenschaftsarten')-find(...)
Em quinta-feira, 8 de março de 2012
@rodrigo
right - this is also the only way to work with ajax form posts
Am Donnerstag, 8. März 2012 13:57:08 UTC+1 schrieb Rodrigo Rodrigues Moyle:
I always use save($data, array('fieldList' = array())) to protect against
this problem regardless of the SecurityComponent.
Em terça-feira, 6
Hello to all.
I'm looking for a plugin like the Spark plug wich is for cake 1.3
Currently I'm testing
https://github.com/chetanvarshney/User-Management-Plugin-for-Cakephp-2.x
Do you know some plugin that uses the native $this-Auth component with or
without facebook connect?
:)
--
Our
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
alter the default template first (removing the default cake stuff),
then when they revisit the home page, this error shows incorrectly.
There should be a php
Sorry, what do you mean by the only way?
I'm trying to fully understand the security component and all of the
caveats before I go and implement anything - I want to do it the proper way.
On Thu, Mar 8, 2012 at 9:07 AM, euromark dereurom...@googlemail.com wrote:
@rodrigo
right - this is also
well, with ajax and dynamic field injection in forms you need to disable
the component or at least some fields in order to not get blackholed
therefore I rather use the field whitelisting than enabling the security
component
but either way: one of those two options you should use to be on the
I've had no problem with ajax forms and the security component. The token
is still added and it still goes through. It only blackholes if you
dynamically change that field with javascript.
On Thursday, March 8, 2012 7:20:34 AM UTC-8, euromark wrote:
well, with ajax and dynamic field injection
Where does Cake rely on a CSS file. How could any PHP program rely on a
css file, for that matter?
On Thursday, March 8, 2012 6:40:15 AM UTC-8, Phil wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
Hello,
I have a non cake php page (not a ctp file) and I want to link to it
as follows:
http://localhost/swr/pages/SkillsMat/edit_scores.php#Joe Blogs
So from in the linking view file, I have the following code:
?php echo $this-Html-link(__('Skills Matrix'), '/pages/SkillsMat/
WordPress is full of globals and a bunch of other garbage that would make
it nearly impossible to work with *any* other codebase. You would be much
better off creating models that connected to WP's database and tables.
That's my suggestion.
On Friday, March 2, 2012 3:27:53 PM UTC-8,
Pages isn't probably the right place to put it.
I would just make it a .ctp file, or create a view class that uses the .php
extension. So if your pages controller used that view it would dispatch
something like /pages/SkillsMat to /views/pages/skills_mat.php. If you need
the .php extension to
OK, I put the directroy SkillsMat in the vendor folder and I created
a SkillsMatController file.
How do I call (run) the file from the view.ctp button?
Currently I have the following:
?php echo $this-Html-link(__('Skills Matrix'), '/SkillsMat/
Based on the controller code I wrote, it would be /SkillsMat/edit_scores
The .php is appended in the controller. I have no idea if it will work, it
was just an idea more than anything.
On Thursday, March 8, 2012 7:59:16 AM UTC-8, Daniel wrote:
OK, I put the directroy SkillsMat in the vendor
Hi,
I got a strange behaviour ajax-sending a form.
In controller the record is saved correctly but I get a 404 response
with Missing Controller, Error: Controller could not be found.
This happens calling:
- $this-redirect( $this-referer() );
- $this-redirect( array( controller = apples,
On Mar 8, 4:02 pm, jeremyharris funeralm...@gmail.com wrote:
Based on the controller code I wrote, it would be /SkillsMat/edit_scores
The .php is appended in the controller. I have no idea if it will work, it
was just an idea more than anything.
OK, I figured out the link, the problem now
Look at turning $autoRender/$autoLayout off in the controller.
On Thu, Mar 8, 2012 at 8:20 AM, Daniel danwgr...@gmail.com wrote:
On Mar 8, 4:02 pm, jeremyharris funeralm...@gmail.com wrote:
Based on the controller code I wrote, it would be /SkillsMat/edit_scores
The .php is appended in
Thanks!
On Mar 8, 9:52 am, Rodrigo Rodrigues Moyle rodrig...@gmail.com
wrote:
You need to disable E_DEPRECATED warning on your php.ini
Or update your CakePHP to 2.1
Em quinta-feira, 8 de março de 2012 08h11min15s UTC-3, Felipe Silveira
escreveu:
PHP Version 5.3.2
Cake @version
Are you saying that you're using the default welcome to cakePHP,
everything is working correctly! page that comes up to make sure all
your settings are correct before creating your website, and that
page's css breaks when you start doing other things which causes
errors to appear on the page
On Mar 8, 4:22 pm, Jeremy Harris jer...@42pixels.com wrote:
Look at turning $autoRender/$autoLayout off in the controller.
OK, I did that. But it still does not render edit_scores.php the same
way as outside of cake. The first column of a table is too narrow and
none of the images in the file
I have no idea if css and images will load properly from the vendors
folder. It's probably looking for those assets in the webroot folders.
The anchor should be stored in $this-params['url']['#'].
It seems weird to be rendering a complete site within Cake.
On Thursday, March 8, 2012 8:53:48 AM
Evening all,
Not sure if this is a core bug or if someone can highlight what I am doing
wrong.
I'm developing a site where after a company places a booking on a course
they can then review the booking and specify alternative delegates if one
or more of the original delegates cannot attend. I
i have version
PHP Version 5.2.17.
how can i request about cli for 5.2.17?..
mi hosting is 1and1,
what this cli?..
thank for your help
On 12 feb, 18:57, Sam Sherlock sam.sherl...@gmail.com wrote:
what version of php have you got available.
note that cake requires php 5.2.8+ (this was
I really do hope this is just a troll attempt, lol
On Thursday, 8 March 2012 14:40:15 UTC, Phil wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
alter the default template first (removing the
Or just update to latest 1.3
On Thursday, March 8, 2012 11:57:19 AM UTC-4:30, Felipe Silveira wrote:
Thanks!
On Mar 8, 9:52 am, Rodrigo Rodrigues Moyle rodrig...@gmail.com
wrote:
You need to disable E_DEPRECATED warning on your php.ini
Or update your CakePHP to 2.1
Em
I don't quite understand OP.
On Thursday, March 8, 2012 6:40:15 AM UTC-8, Phil wrote:
Bad programming by cake php here. This bug still exists in version
2. Why does it rely on a css file existing? A lot of people will
alter the default template first (removing the default cake stuff),
Is there a reason why you are calling redirect() twice?
On Thursday, March 8, 2012 8:08:39 AM UTC-8, muka wrote:
Hi,
I got a strange behaviour ajax-sending a form.
In controller the record is saved correctly but I get a 404 response
withᅵ Missing Controller, Error: Controller could not
File deletion during row deletion works fine in my test cases.
What versions are you using? (I haven't touched file deletion in a long
time)
Whats your behavior settings look like?
What type of association? Or is it direct?
On Thursday, March 8, 2012 12:56:50 AM UTC-8, CrotchFrog wrote:
I call it once but works with only the action params.
$this-redirect( array( action = index ) );
Il 08/03/2012 22:15, Miles J ha scritto:
Is there a reason why you are calling redirect() twice?
On Thursday, March 8, 2012 8:08:39 AM UTC-8, muka wrote:
Hi,
I got a strange behaviour
You should drop the entire MenuBuilder directory structure into the Plugin
directory. That means that the path for the helper class will end up being
app/Plugin/MenuBuilder/View/Helper/MenuBuilderHelper.php.
Plugins do have to be loaded in your bootstrap file. See
I'm starting to write one myself...
Suggestions are welcome ;)
Il giorno giovedì 8 marzo 2012 15:17:14 UTC+1, dariob ha scritto:
Hello to all.
I'm looking for a plugin like the Spark plug wich is for cake 1.3
Currently I'm testing
thats mainly what I was saying: adding or removing fields in the DOM will
cause trouble for sure.
but also resubmitting the form via AJAX several times (as the session token
then expires) will blackhole if not avoided carefully.
so it is always good to know how the fieldList solution works
How does the SecurityComponent affect view caching? Does Cake automatically
work around it?
On Thu, Mar 8, 2012 at 6:59 PM, euromark dereurom...@googlemail.com wrote:
thats mainly what I was saying: adding or removing fields in the DOM will
cause trouble for sure.
but also resubmitting the
Interesting.. Most of my ajax requests replace the form with the response
which has a new token, which is probably why I've never run into that. Good
to know though.
On Thursday, March 8, 2012 3:59:51 PM UTC-8, euromark wrote:
thats mainly what I was saying: adding or removing fields in the
that's obviously a very good way to avoid this issue. always replacing the
form. but with dynamically created forms this is hard to achieve sometimes
:)
Am Freitag, 9. März 2012 01:13:31 UTC+1 schrieb jeremyharris:
Interesting.. Most of my ajax requests replace the form with the response
Yeah, clearing the cache didnt work either. When I view the page source, it
is completely empty.
--
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
Hello,
just started to upgrade my app to Cake 2.1 and noticed that my
hashPasswords() method from User model no longer overrides hashing during
login process.
Is there other way to override hashing method?
Thank you.
--
Our newest site for the community: CakePHP Video Tutorials
Hello,
I'm trying to insert links in the Session-setFlash method, but it's
not working.
I've tried to use Html helper in the controller but it crashed.
I'm using version 2.1.
Thanks,
Thiago
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
in the 2.x book http://book.cakephp.org/2.0/en/development/sessions.html,
it says
Session.cookieTimeout - The number of *minutes* you want sessions to last.
If this is undefined, the value from Session.timeout will be used.
but when I configured Session like this
Configure::write('Session',
Using Cake 2.1 Uploader 3.3
'Uploader.Attachment' = array(
'fileName' = array(
'name' = 'generateFilename',
'baseDir' = '',
'uploadDir' = 'img/artist',
'dbColumn' = 'path',
'importFrom' = '',
'defaultPath' = '',
'maxNameLength' = 30,
'overwrite' = true,
I'd look at tmp/logs/error.log, many hosting provider doesn't report
errors on screen.
Il 09/03/2012 01:40, Michael Gaiser ha scritto:
Yeah, clearing the cache didnt work either. When I view the page
source, it is completely empty.
--
Our newest site for the community: CakePHP Video
see http://mark-story.com/posts/view/using-bcrypt-for-passwords-in-cakephp
On Friday, March 9, 2012 3:29:23 AM UTC+1, Sergei wrote:
Hello,
just started to upgrade my app to Cake 2.1 and noticed that my
hashPasswords() method from User model no longer overrides hashing during
login
53 matches
Mail list logo