cakephp is still php.
try to use urlescape() or rawurlescape()
if you plan on passing a lot of those special characters you can also try
to use base64encode and decode as the Search plugin does
Am Dienstag, 18. September 2012 14:09:51 UTC+2 schrieb Lightee:
Dear CakePHP experts,
When
have you ever seen validates() taking arguments? especially $data? nope
$this-Model-set($this-request-data)
$result = $this-Model-validates()
as the book describes
Am Sonntag, 16. September 2012 20:09:24 UTC+2 schrieb resting:
Created a test setup with v2.2.0
Validation doesn't work.
http://www.dereuromark.de/2012/02/02/more-persistent-sessions-in-cake2-x/
is one easy way (only adding the component).
but since 2.x there is also some CookieAuth (i never tried before, though):
https://github.com/ceeram/Authenticate/blob/master/Controller/Component/Auth/CookieAuthenticate.php
why not using the new response class?
http://book.cakephp.org/2.0/en/controllers/request-response.html#cakeresponse
since mediaview will be deprecated in 2.3 anyway?
Am Mittwoch, 12. September 2012 06:40:31 UTC+2 schrieb jeet bajaj:
Might be it download() function is looking for the
yes
use proper format for your files.
you should save them as utf8 (without bom) if you plan on using those utf8
chars in them
Am Mittwoch, 12. September 2012 20:39:42 UTC+2 schrieb Petr Juráček:
Hello,
if I write 'message' = 'aeiou' CakePHP displayed message,
but if I write 'message' =
sry, what you are doing there is just horrible. I cannot find any other
words for it.
please go through tutorials and the book first
your code is a mess in multiple ways
and it doesnt seem you have understood a single bit of what i wrote. you
cannot just use those deep arrays in php functions.
you should firstly debug your variables properly
using debug() you would find out that the result returned by
findBySomething is a deep array (not a flat one)
from there I am certain you will figure it out
Am Freitag, 31. August 2012 11:44:26 UTC+2 schrieb marco metal:
Hi,
It means that
or attach behaviors like
https://github.com/dereuromark/tools/blob/2.0/Model/Behavior/DecimalInputBehavior.php
to do so
Am Donnerstag, 30. August 2012 14:19:59 UTC+2 schrieb Mancho Murgan:
You can modify the $this-request-data formatting the number in
controller method with number_format()
I think its some mistake, as well.
its probably best to test the class with the second log key removed and to
send a pull request on
https://github.com/cakephp/cakephp/pulls
Am Freitag, 24. August 2012 20:35:28 UTC+2 schrieb cricket:
On Tue, Aug 21, 2012 at 11:56 AM, Juan Ezquerro LLanes
use relative paths:
http://stackoverflow.com/questions/10499232/cakephp-cake-back-console-app-not-doing-what-i-expect
Am Mittwoch, 15. August 2012 22:12:58 UTC+2 schrieb acl68:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 15.08.2012 13:06, schrieb Harshit Sharma:
I am trying to
you do realize that links are to be clicked on?
there are plenty of well written and beautiful colored examples on the link
I gave you
cheese
Am Samstag, 11. August 2012 11:19:30 UTC+2 schrieb Daren W:
Thanks for the reply, can you give me a example of how I can do this
please.
On
you need to show us some code
but I bet that you call save/validate + invalidate or something like that
it just adds the same message twice to the error message stack
Am Samstag, 11. August 2012 18:26:09 UTC+2 schrieb Shahruk Khan:
array(
'email' = array(
(int) 0 = 'You must enter a proper
careful who has access to it, though
using eval can be pretty dangerous - since it can execute any php code.
so normal users should probably not have edit access.
PS: in my case it was
$res = eval(? . $str . ?php );
to make it work in all cases
the reason you need this is that you have HTML in
seriously? if you have trouble accepting the fact that webspace is
literally free nowadways ( 1000 GB), and that the app itself and its
assets (images) will usually cake up 5 times more space in the long
run, you really got your facts wrong.
what exactly is the problem with 5-10 MB? Even if
virtual fields are your friend:
http://book.cakephp.org/2.0/en/models/virtual-fields.html
Am Mittwoch, 8. August 2012 20:22:18 UTC+2 schrieb Daren W:
I am in the learning process and would like to know how to write the two
below statements in cake format, could someone please advise.
)
---
Regards,
Chris
2012/8/8 euromark dereu...@googlemail.com javascript:
seriously? if you have trouble accepting the fact that webspace is
literally free nowadways ( 1000 GB), and that the app itself and its
assets (images) will usually cake up 5 times more space in the long
run, you
you should use smtp if you send emails locally. especially if you do not
know how to set up the environment for sending php mails using mail() etc
its always easier to use the smtp protocol then.
it also has the advantage to always be the same on every environment.
Am Dienstag, 7. August 2012
did you try to search for it?
if I go to the packages site and type in packages - what do I get?
http://plugins.cakephp.org/package/josegonzalez/package_installer
Am Montag, 6. August 2012 06:33:59 UTC+2 schrieb NdJ:
What is the current state (if any) for the packaging of CakePHP plugins?
I think you can already use virtualFields for cake1.3
http://book.cakephp.org/1.3/view/1608/Virtual-fields
then it will work
Am Freitag, 3. August 2012 09:28:56 UTC+2 schrieb lorenzoshake:
$sql_for_distance is the classic function to calculate distance with
latlng
--
Our newest site for
for starters, take out the validation redundancy
why setting the errors to the view? also not necessary
also, in 2.x your __() looks differently (arguments usually are not true
but replacement strings)
why dont you use baking? it would display a better output than you
currently have
Am
if you can't trust your co-workers, you might want to change the company.
PS: they could still go into the database directly to alter values (or do
you also cipher the database.php?)
in any case the above hints should get you started on how to address the
problem.
Am Mittwoch, 1. August 2012
it boils down to either
- use security component (form fields cannot be messed with)
- or use whitelisting (fieldList) on save:
http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-save-array-data-null-boolean-validate-true-array-fieldlist-array
Am Mittwoch, 1. August 2012 11:09:21
a) why not providing the data correctly sorted from the db level? let mysql
do the work
b) if that is not possible for some reason, why not manually iterating over
the array? probably still faster than the Set/Hash class anyway.
yeah, might be a few lines more, but at least you got it in a few
it is usually not the controller you need to worry about
in the view level just dont output the variable
and on input (forms etc) use whitelisting for the model methods to exclude
the field on save etc.
Am Montag, 30. Juli 2012 16:34:59 UTC+2 schrieb Mahmoud Adel Farid:
i want any
http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html
Am Sonntag, 29. Juli 2012 04:17:24 UTC+2 schrieb Steven Scaffidi:
Ok nevermind I changed the fields to INT and now they work fine. One more
question is there a way to change the defaults on the number helper. For
example,
can somebody pleeaase stop this spam nonsense?
Am Donnerstag, 26. Juli 2012 20:32:19 UTC+2 schrieb Ivan Suzen:
Hi Guys...
I have purchased User Management Plugin from
http://umpremium.ektasoftwares.com/ site. I went through the demo version
of so called eagle plugin on
is google groups really becoming the new marketplace for software? really?
there have been quite a few posts now regarding ads to non-free products
Am Freitag, 27. Juli 2012 20:56:54 UTC+2 schrieb Ivan Suzen:
Hi All,
I found the *original website* for CakePhp 2.x User Management Plugin and
Although the description might be german, the example itself should be
understandable:
http://www.cakephp-forum.de/tutorials-und-snippets/autocomplete-mit-jquery-t1211.html
Am Mittwoch, 25. Juli 2012 14:48:37 UTC+2 schrieb Dr. Tarique Sani:
Keep your js separate from the php and any
using the security component is an absolute requirement for beginners.
especially due to missing whitelisting in default templates.
besides that you pretty much only need to make sure you don't output
unescaped output - using h($var)
that should take care of most of the basic problems
Am
for standards it doesnt matter which country you come from - praise the
lord.
on a db level this usually only is the one: YY-MM- (for the reasons
mentioned above)
you are worried about a theoretical - slightly - slower performance with
the current way of doing things?
write a test case to
also - when loading/including a model, why not using the wrapper methods
cake gives you - for free one should mention
Am Mittwoch, 18. Juli 2012 16:22:16 UTC+2 schrieb AD7six:
You've forgotten to ask a question..
AD
--
Our newest site for the community: CakePHP Video Tutorials
exactly
in short: you don't
most cases you got your coding wrong.
try to put your code into the model, a component, a lib or some other more
generic class where you can access and call it from
all controller methods you need it.
but including other controllers will only result in a mess in the
@ProLoser
your current version doesnt work for me anymore. seems like
`$options['fields'] = str_replace($options['class'], $alias,
$options['fields']);` is killing it:
Column not found: 1054 Unknown column 'MainMainTag.name' in 'field list'
removing this line and the tests run again.
are there
how i hate those non-sense for-crying-out-loud thread titles^^
Am Montag, 16. Juli 2012 15:40:06 UTC+2 schrieb Lboogie:
Hello, i am trying to install a project manager created with cake php but
can't seem to trigger the install option when there is no install folder or
files to do so...can
for me this doesnt make much sense
the database is switched/selected based on the environment not what
action/shell you invoke - normally anyway
so for local development you have a local db at all times which will then
also be used for baking
or what exactly are you asking? I mean, why
, 2012 at 8:13 PM, euromark dereurom...@googlemail.comwrote:
for me this doesnt make much sense
the database is switched/selected based on the environment not what
action/shell you invoke - normally anyway
so for local development you have a local db at all times which will then
also be used
Yummy - love it :)
Am Mittwoch, 11. Juli 2012 12:37:35 UTC+2 schrieb Graham Weldon:
Sure.
You just need:
- FlourJS,
- SugarCRM
- Phocoa (Like Cocoa, for PHP)
- PHPEgg
- Mozilla Butter (For Popcorn)
If this is not rich enough for you, try adding some Chocolate Chip UI.
Hope that
why not using utf8_unicode_ci (ci stands for case ins.)?
using this for all tables will take care of your poblem at the root
(without having to change fields)
Am Sonntag, 8. Juli 2012 11:48:21 UTC+2 schrieb JonStark:
Oh thanks never knew about this ! Do you know how to edit a table field
Well, you see
there are quite a few ways to produce barcodes (see google for reference)
those PHP libraries can easily be used from cakephp to display barcodes
the other way around is more difficult. you would need hardware to actually
read and process barcodes.
a cellphone with a barcode reader
try this one:
https://github.com/dereuromark/search
it can handle multiple fields across models for a like term etc
'field' = array('Primary.field', 'Secondary.other_field')
Am Freitag, 15. Juni 2012 00:06:03 UTC+2 schrieb Bob Bowen:
Is there any way to make this work? As I understand
you cannot compare debug mode 2 and 0
thats nonsense and like comparing cars to screws
Am Donnerstag, 31. Mai 2012 12:47:46 UTC+2 schrieb Điển vũ:
I still think with debug is 0 , cakephp will be run faster when debug is
2.
But when i use ApacheBench : ab -n 100 http://example.com in
NO, i am saying that this shoudn't have been in this blog post in the first
place
it is absolute nonsense to say that this a performance gain - since debug 0
is the absolute requirement for any (live) app
therefore there is nothing to compare
you develop with 2, you deploy with 0
2 will always
try https://github.com/ceeram/CakePdf
Am Mittwoch, 30. Mai 2012 10:48:06 UTC+2 schrieb AD7six:
On Wednesday, 30 May 2012 08:02:40 UTC+2, DAHAN Mamdouh wrote:
Hello
I want to generate pdf reporting with cake php, please advise me
Start from: it's exactly the same as generating a pdf
use this when displaying pwd fields:
http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/
Am Montag, 28. Mai 2012 22:00:22 UTC+2 schrieb Richard:
I am sure there are a lot better solutions than this, and more brilliant
coders can help you out, but at least this is what I
you are probably looking for some WhoDidItBehavior
https://github.com/dereuromark/tools/blob/2.0/Model/Behavior/WhoDidItBehavior.php
Am Dienstag, 29. Mai 2012 15:23:39 UTC+2 schrieb GB:
We believe it is important to save the user id with a record both on
create and update to know who
a) by attaching the behavior in different ways (with different settings)
for each action you can have the desired results
I think it was allowEmpty = false for add forms
b) you can't (and never should either) - due to the nature of how hashing
works
Am Dienstag, 29. Mai 2012 20:57:49 UTC+2
without showing the complete code its hard to tell what you are doing wrong
no - as long as you are connected to the internet you should be fine
Am Freitag, 25. Mai 2012 21:24:57 UTC+2 schrieb Michael:
Would there be any issue with the fact that I am running it from my
local host instead of
you must be doing sth wrong. this is usually a JS error.
if you use firefox and firebug extension you most likely can see the JS
error in the firebug console at the bottom.
Am Freitag, 25. Mai 2012 09:56:06 UTC+2 schrieb Michael:
So I have been trying to get this to work but still cannot seem
just use casting for this and you will be fine:
echo (int)$car['Car']['is_active'];
Am Donnerstag, 24. Mai 2012 10:55:57 UTC+2 schrieb Andras Kende:
in cake 1.3 always used tinyint(1) for is_active database fields..
echo $this-Form-input('is_active');
this created a checkbox and saves 0
use a behavior
like www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/
Am Mittwoch, 23. Mai 2012 16:23:23 UTC+2 schrieb Hill180:
Are you talking about complexity rules?
On Wed, May 23, 2012 at 2:59 AM, Roopa Mani C roopac@gmail.comwrote:
i need changepassword
I still use google maps.
but there the only evolution is going to not free anymore - so for high
traffic sites this might not be the most suitable approach (or it might
again if the money is not the issue).
Am Mittwoch, 23. Mai 2012 19:53:07 UTC+2 schrieb Alex Bovey:
Hi all,
What behavior
try https://github.com/cakedc/search
Am Dienstag, 22. Mai 2012 19:35:29 UTC+2 schrieb webguy262:
How do I add a search function to an existing CakePHP site I inherited?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
dont you just love double posts, AD?
the answer has already been given a day ago:
http://stackoverflow.com/questions/10671634/cakephp-shell-shell-class-helloshell-could-not-be-found
^^ but what the heck. let them keep us busy anyway
Am Sonntag, 20. Mai 2012 09:28:31 UTC+2 schrieb LiveJin:
why are you decoding again?
if you want the image to be displayed as base64 you need to display it
encoded all the way
PS: you should also think about making a convenience method for this like I
once did:
https://github.com/dereuromark/tools/blob/2.0/Lib/MyHelper.php#L70
so that you can access
you can usually find the latter in belongsTo relations.
cake will then return the result with those values set to null.
if you have hasMany relations (a separate query) it doesnt make sense to
return lots of empty result sets
and therefore it would just be an empty array
Am Dienstag, 8. Mai
i think the docs are outdated in this case.
there are only 2 arguments in 2.x
see the class itself for details.
(any decent IDE would have pointed that out to you directly, though)
Am Dienstag, 8. Mai 2012 18:46:41 UTC+2 schrieb hoss7:
hi
thats why I don't care about PUT or POST:
https://github.com/dereuromark/tools/blob/2.0/Controller/Component/CommonComponent.php#L143
for me:
posted = put or post
get otherwise
at least in a practical sense anyway (since the one is only a more specific
version of the other).
Am Samstag, 5.
the id is unknown on add.
therefore you should have a afterSave() hook for this
public function afterSave($created) {
if (!$created) return;
$this-saveField('personalno', $this-id + 100);
}
or sth like that should work
Am Donnerstag, 3. Mai 2012 12:02:00 UTC+2 schrieb alexkd:
I am
@romel
first error: he wants it in a component - not the view
second issue: the request object should be used for this. not the
controller itself (that used to be this way in 1.x)
http://book.cakephp.org/2.0/en/controllers/request-response.html#cakerequest
(as for right now it still works
so what exactly is your problem?
what happens?
from the idea you display it should work just fine
but without actual code we cannot see what you are doing there and why it
might have been broken
Am Dienstag, 1. Mai 2012 08:26:44 UTC+2 schrieb hoss7:
hi
i want send array to some cookie and
you just rephrased your initial post.
and still didnt post the actual code of your problem (only pseudo code
which you shouldnt)
also - always cast if you want to to check some key that might be null.
$cookieArray = (array)$this-Cookie-read('key');
if (in_array($value, $cookieArray)) {}
Am
as I explained above you need to cast such a return result before you can
use it as an array.
$arr = (array)$this-Cookie-read('braceletid');
$arr[] = $id;
$this-Cookie-write('braceletid', $arr);
Am Dienstag, 1. Mai 2012 11:59:07 UTC+2 schrieb hoss7:
thanks, how can i add some value in this
yeah
but my proposal about correcting this redirect hasnt been applied right at
the beginning of 2.0 as far as I know
still, I think the main issue might be solvable by debugging the redirects
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the
its all in the documentation:
http://book.cakephp.org/2.0/en/views.html
and
http://book.cakephp.org/2.0/en/views.html#view-blocks
note the New in version 2.1. label
Am Mittwoch, 25. April 2012 14:54:02 UTC+2 schrieb Mohammad Naghavi:
Hi all,
today I downloaded the CakePHP 2.1.1 for the
what version are you using?
because in 2.x it should be the other way around:
sort($key, $title)
please always mention your cake version
Am Donnerstag, 26. April 2012 01:29:26 UTC+2 schrieb Hill180:
Trying to use the paginator in the view
I have an Author who is has a Book and where the
Why create the FormHelper an additional hidden input field?!?!?!
there is nothing wrong.
the answer can be found here:
http://stackoverflow.com/questions/10049917/cakephp-checkbox-is-showing-extra-hidden-field/10049937#10049937
Am Dienstag, 24. April 2012 14:48:07 UTC+2 schrieb Sipatshi:
@cricket: but it shouldn't hurt either :)
Am Dienstag, 24. April 2012 22:37:03 UTC+2 schrieb cricket:
The login method is special and shouldn't be included in allow().
On Tue, Apr 24, 2012 at 4:22 PM, Budd buddf...@gmail.com wrote:
public function login() {
if
from the look at your code I can see nothing wrong so far
try to debug redirect() and find out what it tries to redirect to - e.g.
using $this-log()
maybe you are using an early cake version where you would get redirected to
the homepage (/) instead of your loginRedirect in such a case.
if
+1 for stork on completeness (listing all possibilities)
Am Freitag, 20. April 2012 12:47:25 UTC+2 schrieb Mangesh Sathe:
Thanks ,
this worked .
On Fri, Apr 20, 2012 at 14:13, stork lubomir.st...@gmail.com wrote:
Always call as first
$this-User-create(); //see the API
and
just the index is broken
go here for now:
http://book.cakephp.org/2.0/en/contents.html
i am sure somebody from the core team will fix it ASAP
Am Freitag, 20. April 2012 14:51:48 UTC+2 schrieb Sipatshi:
hi all,
cant open http://book.cakephp.org/2.0/en/ !?!?! server problem?
That show me:
changing error type to E_ALL ~E_DEPRECATED ~E_STRICT will also
disable the error
On Wednesday, April 18, 2012 2:57:10 PM UTC-7, euromark wrote:
as far as I know this is a strict issue and not related to a specific
php version
if you disable strict mode in your core.php you shouldnt get any
always do it this way:
- navigate to your app dir
- then call cake relativly:
app\../lib/Cake/Console/cake ...
Am Freitag, 20. April 2012 00:37:12 UTC+2 schrieb Toren Valone:
I am having issues with cake bake for 2.1
I navigated to the Console directory and ./cake bake
I was asked
as far as I know this is a strict issue and not related to a specific php
version
if you disable strict mode in your core.php you shouldnt get any such
notices regardless if you are using 5.4 or 5.3
correct me if I'm wrong
but yes, some code examples might be outdated
the documentation can be
@cricket
almost perfect - I would not pass the referer this way, though. creates
overhead
and then I don't think the else case inside the post() is necessary.
after a post the same post data will populate the inputs anyway. therefore
the Model.referer input should still have the same value.
no
Hats off if you are new and already working on behaviors :)
Vendor would be only for third party stuff. since you write your own code
there is only one suitable place left for library files:
/APP/Lib
Just store your files there - preferably grouped in packages (e.g.
MyPackageName)
for you it
jesus christ - how I just love those double posts
it has already been marked as solved here:
http://ask.cakephp.org/questions/view/send_some_result_to_elemetns
Am Montag, 16. April 2012 18:23:16 UTC+2 schrieb cricket:
It's not clear what you mean by getting the data to the element. Do
you
\:\/\/www.domain.comhttp://www.google.com/url?sa=Dq=www.domain.comusg=AFQjCNF2VZnNvBDuFoDgI6jKjQM0LVHXaA
[R=301,L]
Is this the best/correct usage?
On Friday, April 13, 2012 8:37:46 PM UTC-5, euromark wrote:
@kdubya: thats actually how you normally do it anyway
what kdubya wants is just not how it is done
Simply be creating your own AuthExt component which overrides the default
login() method:
https://github.com/dereuromark/tools/blob/2.0/Controller/AuthExtComponent.php#L108
PS: the class is not intended for public use (kind of ugly still from 2008,
only upgraded without cleanup to 2.x) -
Am Mittwoch, 11. April 2012 21:29:24 UTC+2 schrieb euromark:
We have been trying for hours getting a second datasource to work which
connects to a MS Sql Server (2008) from linux.
On windows we have running the pdo_sqlserv extension. And with a few
hours of trial and error and installation
@kdubya: thats actually how you normally do it anyway
what kdubya wants is just not how it is done... (you always use www as the
actual site and 301 redirect from non-www there) imo
Am Freitag, 13. April 2012 15:51:52 UTC+2 schrieb kdubya:
I realized I answered only part of your question. I
to your environment.
On Thursday, April 12, 2012 2:52:53 AM UTC+7, euromark wrote:
in the $mssql it's 'database' = 'database' - but thats not that
important.
we also tried the SqlSrv datasource from the Datasources plugin (cakephp
github)
But this seems to use the sqlsrv extension which
did you see my post from yesterday?
https://groups.google.com/forum/?fromgroups#!topic/cake-php/8y2Y511krEU
had the same issue, but on linux.
on windows I got it to run with the included SqlServer datasource (you need
to follow the instructions from microsoft)
you are probably looking for sth like this:
http://bakery.cakephp.org/articles/alkemann/2008/10/21/logablebehavior
it is a behavior that can be attached to models in order to log the changes.
Am Freitag, 13. April 2012 00:41:08 UTC+2 schrieb thom:
Hello,, I'm using cakePHP 1.3. I'd like to
We have been trying for hours getting a second datasource to work which
connects to a MS Sql Server (2008) from linux.
On windows we have running the pdo_sqlserv extension. And with a few
hours of trial and error and installation of different drivers we got it up
and running.
We use the
schrieb euromark:
We have been trying for hours getting a second datasource to work which
connects to a MS Sql Server (2008) from linux.
On windows we have running the pdo_sqlserv extension. And with a few
hours of trial and error and installation of different drivers we got it up
and running
the component work more automatically.
If you're willing to provide more insight I would greatly appreciate it -
otherwise I will do some more homework and see what I can figure out.
Thanks again!
On Monday, April 9, 2012 8:47:41 PM UTC-5, euromark wrote:
I was more thinking about a more
with 2.1 the issue should be easy to resolve.
there are now great ways to keep the code dry and still use all classes
accordingly:
http://www.dereuromark.de/2012/04/10/cakephp-now-fully-mvc/
You would make a Cleaner lib in /Utility and then you can still use some
CleanerHelper with internally
for starters the protocol (http or https) doesnt necessarily have to do
with cake.
your application will run with both versions - you can switch easily
between them.
you should first consult on how to install and setup the certificates, how
to make your apache route the https connection.
if
IF you really need to use a model in this context you should never use
new but ClassRegistry:
$Model = ClassRegistry::init('Meta');
Not sure if breaking MVC is really the best way to go here. But if it works
for you, nobody will force you to
undo your obviously working code. Also not sure how
Dienstag, 10. April 2012 00:07:24 UTC+2 schrieb creat1v1ty:
Thanks very much for the insights, euromark. Here is some additional info
based on your questions:
*Not sure if breaking MVC is really the best way to go here* - breaking
MVC is not something I am doing intentionally. To be completely
Belem
Enviado do meu Android (e sujeito a erros do corretor automático)
Em 09/04/2012 22:24, creat1v1ty justin.r.ran...@gmail.com escreveu:
Thanks again euromark - I've taken your advice and tips and created a SEO
Component, which I feel is the best solution. It keeps my MVC conventions
Well, you can dynamically activate/deactivate it via Configure::write().
Put this in your configs:
$config['AutoLogin'] = array(
'active' = 1
);
I was under the impression that the default value was 1. But I will look
into that.
Am Sonntag, 8. April 2012 11:07:29 UTC+2 schrieb heohni:
Hi,
yes, it is active by default:
https://github.com/dereuromark/cake-auto_login/blob/master/Controller/Component/AutoLoginComponent.php#L49
so you might have overwritten it somewhere in your configs
Am Sonntag, 8. April 2012 12:07:22 UTC+2 schrieb euromark:
Well, you can dynamically activate
I pushed an updated file
but your problem must be in your code somewhere
this setting can never ever become false if you don't overwrite it
manually.
try to debug $this-settings itself (does it still contain all the keys?)
Am Sonntag, 8. April 2012 12:46:44 UTC+2 schrieb heohni:
No,
so where is your problem?
looking at your debug statement, everything is all right
! = NOT
so
!true === false
and it will only run into the skip if it would be true (and active would be
false) here
Am Sonntag, 8. April 2012 12:51:11 UTC+2 schrieb heohni:
If I do a debug($this-settings);
I
for me.
That is my problem :-)
This way the cookie will never be created.
Am Sonntag, 8. April 2012 13:07:06 UTC+2 schrieb euromark:
so where is your problem?
looking at your debug statement, everything is all right
! = NOT
so
!true === false
and it will only run into the skip
thankful that you are helping me, even on a Sunday and
Eastern!!
Am Sonntag, 8. April 2012 13:44:32 UTC+2 schrieb euromark:
of course it will
If $user is not empty - and you already have a logged in user
the cookie willl only be created upon login just before the redirect
Am Sonntag, 8
my guess:
you either didnt set requirePrompt to false OR you didnt provide the
checkbox in the login form.
this way it will also skip the cookie creation
Am Sonntag, 8. April 2012 11:07:29 UTC+2 schrieb heohni:
Hi, I tried to setup this AutoLoginComponent Component from
as you said - there is a lot of magic going on. so besides the login()
statement there is nothing else
but you can put these in your app controller - they will tell you more:
protected function _autoLogin() {
$this-log('SUCCESS - ' . $this-Session-read('Auth.User.id'),
'autologin');
if
why dont you try it out?
also - why not looking into the class and its documentation
there you would have probably found the reset() method
Am Samstag, 7. April 2012 18:37:15 UTC+2 schrieb heohni:
Hi,
I having a newsletter registration where I want to send an email to the
user and to the
401 - 500 of 1739 matches
Mail list logo