Re: Cakephp 1.3 video tutorial

2013-03-12 Thread euromark
why not starting with the current cake version if you just started to work with it? Use 2.3 and the tutorials here: http://book.cakephp.org/2.0/en/tutorials-and-examples.html Am Dienstag, 12. März 2013 15:54:07 UTC+1 schrieb Joseph zhu: > > Hi there: > I am a beginner for cakephp 1.3, I have a

Re: How to hide id input and give it a value in cakephp

2013-03-07 Thread euromark
If you feel the need to crosspost all over the www, it would be nice to link those other posts - like http://stackoverflow.com/questions/15269787/how-to-hide-id-input-and-give-it-a-value-in-cakephp this way people can take a look there if the answer might already be answered and avoid giving the

Re: about float numbers

2013-03-06 Thread euromark
See the answer you already got here https://cakephp.lighthouseapp.com/projects/42648/tickets/3676 The answer still is the same: You got no problem, since `1.1e+006 === 111` (note the "identical" here) You should also ask yourself if float makes sense here. seems like you are only intere

Re: How to define a checkbox variable in Cakephp

2013-03-06 Thread euromark
You already got your answer at SO. Am Mittwoch, 6. März 2013 08:50:35 UTC+1 schrieb Victor Musvibe: > > I have a form in my Plugin elements and what i would like to insert the > checkbox value into a table named it_queries and field status_type and its > giving me an error Undefined variable: v

Re: How to define a variable in Cakephp

2013-03-05 Thread euromark
http://stackoverflow.com/questions/15221467/how-to-define-a-variable-in-cakephp Am Dienstag, 5. März 2013 11:55:37 UTC+1 schrieb Victor Musvibe: > > I trying to pass a variable in cakephp to a view and getting error > Undefined variable: view [APP\View\ItQueries\add.ctp, line 9] and line 9 is >

Re: defaultCurrency

2013-03-04 Thread euromark
Yo should set the currency on the CakeTime class as this is the clear dealing with defaults first (e.g. via bootstrap or AppController::beforeFilter etc) The helper will inherit it automatically in the view layer. Am Montag, 4. März 2013 18:37:24 UTC+1 schrieb NikNik: > > Hello > how can I set t

Re: How to use TimeHelper to output the data like (Y minutes ago, X hours ago or Z days ago).

2013-03-01 Thread euromark
haha, I just gave the exact same comment-less answer here http://ask.cakephp.org/questions/view/how_to_use_the_timehelper_to_some_thing_like_it_was_post_5_hours_ago Am Freitag, 1. März 2013 23:44:37 UTC+1 schrieb Thiago Belem: > > > http://book.cakephp.org/2.0/en/core-utility-libraries/time.html

Re: Stuck with migration from 1.3 to 2.x / euromark plugin

2013-02-26 Thread euromark
paths cached etc. Mark Am Montag, 25. Februar 2013 20:52:33 UTC+1 schrieb acl68: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi euromark, > > > some questions to your readme: > > a) Copy this plugin into your /app/Plugin folder > My app doesn'

Re: Stuck with migration from 1.3 to 2.x / euromark plugin

2013-02-24 Thread euromark
ges with the default 2.0 migration > shell I tried it now with the improved version from euromark: > https://github.com/dereuromark/upgrade > > > Here the facts: > I am running Linux with php 5.4. > I downloaded cake 2.3.0 and euromarks plug-in. > After unpacking the new cake v

Re: Problem with using components when Importing a Controller

2013-02-21 Thread euromark
ller()); ... and with 2.x you can than refactor it into sth clean :) Am Donnerstag, 21. Februar 2013 15:39:54 UTC+1 schrieb david...@gmail.com: > > > > On Thursday, February 21, 2013 2:20:00 PM UTC+2, euromark wrote: >> >> Even with Cake1.3 you dont import and abuse co

Re: Problem with using components when Importing a Controller

2013-02-21 Thread euromark
Even with Cake1.3 you dont import and abuse controllers this way. You need to refactor those controller methods into clean model methods and only re-use those. Am Donnerstag, 21. Februar 2013 11:52:09 UTC+1 schrieb david...@gmail.com: > > I have a controller EmailNotifications which I am accessi

Re: Use Configure::read in $components

2013-02-20 Thread euromark
eamspeak_query_password').'@'.Configure::read('Settings.teamspeak_ip').':10011/?server_port='.Configure::read('Settings.teamspeak_port').'&no_query_clients=1'); >> >> parent::constructClasses(); >> } >> >> This code return

Re: Use Configure::read in $components

2013-02-20 Thread euromark
unless he needs the uri in initialized() than this would be too late. then one might have to overwrite constructClasses(): public function constructClasses() { $this->components['TeamSpeak3.TeamSpeak3'] = array( 'uri' => Configure::read('Settings.ts_uri)); parent::constructClasses(); } Just

Re: Cake PHP Search Component not working and giving an error

2013-02-18 Thread euromark
Lets not try to duplicate everything and stay on http://stackoverflow.com/questions/14936595/search-functionality-not-working-using-id-field-input The main question still stands: If you use "name" as form field, why are you declaring they key in your behavior as "id"? it should then also be "nam

Re: Cake PHP Search Component not working and giving an error

2013-02-18 Thread euromark
You would need to properly upgrade the component and make it work with your version of cake. I propose you try https://github.com/cakedc/search It is up to date, more sophisticated and does the job with less configuration Am Montag, 18. Februar 2013 09:43:46 UTC+1 schrieb Victor Musvibe: > >

Re: TreeBehavior Key Methods Quick Reference/Cheatsheet

2013-02-14 Thread euromark
I usually just open the file and look at its code, the declared methods and its well documented doc blocks. Also, using the IDE and its code completion I can see all that by moving my cursor over the method. But maybe that's just me :) Am Donnerstag, 14. Februar 2013 20:06:39 UTC+1 schrieb Lar

Re: translation of Dropdowns

2013-02-10 Thread euromark
ESSAGE- > Hash: SHA1 > > Hi euromark, > > thanks for your quick answer and "listening" to my problem. > > So... I found the error. It was a mixture between missing "true" and > copy & paste error. > > Here I include the working method. I g

Re: translation of Dropdowns

2013-02-10 Thread euromark
the question is: why are you not using "true" as second param for __() when you did so correctly in the first place or even better: why debugging a completely different - and again translated for a second time - result/output than you actually created yourself? why not just using the value you ju

Re: Multi Tenancy / SaaS

2013-02-04 Thread euromark
"test driven development" Am Montag, 4. Februar 2013 22:56:21 UTC+1 schrieb cricket: > > It's ok to design a model that expects User data but you should pass > it to the model from the controller. > > What's TDD? > > On Sun, Feb 3, 2013 at 9:38 PM, Tony Messias > > wrote: > > Well, I believe

Re: What do I need to do to get my plugins accepted on http://plugins.cakephp.org?

2013-02-04 Thread euromark
All packages since June 2012 are on the queue. I already asked the same question a few months ago. As of right now there are probably way more than just yours waiting to be accepted. Am Montag, 4. Februar 2013 00:49:43 UTC+1 schrieb Florian Krämer: > > I've requested my Cart

Re: cakephp on XAMPP for windows

2013-01-31 Thread euromark
since PHP5.4 E_STRICT is included in E_ALL (you would need to explicitly remove it). That is why your PHP5.2 env does not report any strict errors (there you need to explicitly activate it). Am Donnerstag, 31. Januar 2013 09:35:26 UTC+1 schrieb roundrightfarm: > > So, I've discovered that setti

Re: Best practice to call "cake schema update" without shell

2013-01-29 Thread euromark
It can. If you got sufficient rights to do that (executable rights for this user - www-data probably). But I am not sure if thats a very good idea. Why not providing shell access here? Am Dienstag, 29. Januar 2013 05:59:51 UTC+1 schrieb LDSign: > > Hi > > I would like to call a shell command on

Re: Bake Plugin Issues

2013-01-28 Thread euromark
ER anywhere in the site, but I will do some > exploring with your pointer. > > > > Thanks, > > Dave > > > > *From:* cake...@googlegroups.com [mailto: > cake...@googlegroups.com ] *On Behalf Of *euromark > *Sent:* Monday, January 28, 2013 4:51 AM >

Re: Bake Plugin Issues

2013-01-28 Thread euromark
Looks like this is your own faulty code (in AppController) that triggers it Fix that first. PS: You cannot just use $_SERVER like that without any checking. Especially if you also invoke the AppController via CLI (while baking for example) as some vars will not be set as you know it from a web-ba

Re: Any way to check url before redirect?

2013-01-25 Thread euromark
Use a component and its beforeRedirect() callback see the docs for more infos, but basically you can intercept the redirect this way. Am Freitag, 25. Januar 2013 11:28:37 UTC+1 schrieb LDSign: > > Hi > > I am searching for a way in cake to check an url before it is called > (via redirect). >

Re: Which version is good and stable for development among 2.3.0 Rc2 and 2.2.5

2013-01-25 Thread euromark
You can probably safely start with 2.3 now. By the time your app will be ready for deployment chances are pretty high 2.3 will not be a RC anymore. But in my experience, even RCs are pretty pretty close to the real deal, as there is a huge test coverage proofing that 2.3 is nothing less than an i

Re: Can't validate URL

2013-01-24 Thread euromark
mp;bih=650&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&cad=b&sei=pm0BUaSyEInHtAbyvoDQAQ Am Donnerstag, 24. Januar 2013 18:03:44 UTC+1 schrieb gonzela2006: > > Hello euromark, > > No spam, I'm just trying to find a solution to my problem in different > places. > > On Thursday

Re: Can't validate URL

2013-01-24 Thread euromark
the same spam as http://stackoverflow.com/questions/14505837/cakephp-cant-validate-url ? Am Donnerstag, 24. Januar 2013 17:16:49 UTC+1 schrieb gonzela2006: > > Hello, > > can't validate the below url using 'rule' => 'url' on my model > > > https://www.google.com/search?sugexp=les;&gs_rn=1&gs_ri=

Re: CakePHP 2.0.5 and localization

2013-01-24 Thread euromark
@vanessa you might want to look into http://book.cakephp.org/2.0/en/appendices/2-3-migration-guide.html#l10n the french folder should be "fra" instead of "fre" for >= 2.3 Am Donnerstag, 24. Januar 2013 16:20:38 UTC+1 schrieb vanessa v: > > I'm having an issue with this too. I'm using French th

Re: CakePHP 2.0.5 and localization

2013-01-24 Thread euromark
Some of those translation strings went into the "cake" domain __d('cake', ...); check the online source or the "Localized" plugin on how to make it work again and translations for it. In the end you just need to move those strings from default.po into cake.po (or run extract once more)

Re: foreach loop in select option

2013-01-21 Thread euromark
CakeBot would probably say now: "Thats good to know" Am Montag, 21. Januar 2013 17:31:13 UTC+1 schrieb PlanoCoder: > > I need to use foreach data in > > $this-Form->select('player'); > > here is my current code > > > > Team:

Re: custom logger

2013-01-16 Thread euromark
example. SO is not really up for discussions usually. and google groups might not be well suited for long excerpts of code. Just my 5 cents. Am Mittwoch, 16. Januar 2013 19:27:36 UTC+1 schrieb cricket: > > On Tue, Jan 15, 2013 at 6:42 PM, euromark > > wrote: > > Wouldnt you f

Re: custom logger

2013-01-15 Thread euromark
, 2013 at 6:00 AM, euromark > > wrote: > > > > PS: Multiposts should be avoided > > > > What's wrong with posting a question here as well as some other site? > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/Ca

Re: custom logger

2013-01-15 Thread euromark
You got your answer here http://stackoverflow.com/questions/14331152/custom-log-method PS: Multiposts should be avoided Am Dienstag, 15. Januar 2013 04:55:49 UTC+1 schrieb sixthpoint: > > Typo, core.php should be bootstrap.php above > > On Monday, January 14, 2013 9:54:26 PM UTC-6, sixthpoint wr

Re: Form action is /login?url=login

2013-01-15 Thread euromark
if thats not it you probably have the wrong mod rewrite strings in your htaccess file check the current 2.x head to compare yours against the core config. Am Dienstag, 15. Januar 2013 08:06:26 UTC+1 schrieb ivnrmc: > > probably the method of the form is GET. and he is thinking, okay im in > log

Re: DebugKit behaviour

2013-01-14 Thread euromark
"It allows you to force the toolbar to display regardless of the value of Configure::read('debug');. This is useful when profiling an application with debug kit as you can enable the toolbar even when running the application in production mode" As the documentation states you should only use for

Re: DebugKit behaviour

2013-01-14 Thread euromark
No, it should always show by default. Also - debug() has nothing to do with the plugin. You can use ans many debug() as you want anywhere in your code. Just notice that outputting data before actually rendering the view usually messes up the output (it also affects headers like the redirect heade

Re: viewing PDF

2013-01-14 Thread euromark
ment. > *Fatal error*: Call to a member function add() on a non-object in * > D:\xampp\htdocs\VR\V6\app\View\Layouts\default.ctp* on line *47* > > > > Op donderdag 10 januari 2013 17:35:17 UTC+1 schreef euromark het volgende: >> >> You forgot the RequestHandler component,

Re: viewing PDF

2013-01-10 Thread euromark
You forgot the RequestHandler component, didnt you? Am Donnerstag, 10. Januar 2013 17:19:15 UTC+1 schrieb Dr. Drijk: > > I'm using the CakePdf-plugin to parse a view as pdf. > > I added to \app\config\bootstrap.php : > CakePlugin::load('CakePdf', array('bootstrap' => true, 'routes' => true)); >

Re: Baking cake 2.4

2013-01-07 Thread euromark
cake2.4? you mean 2.3 right? or are you "back from the future"? Am Sonntag, 6. Januar 2013 14:08:07 UTC+1 schrieb Olufemi Oluoje: > > Pls can anyone send me the link of how to bake cake 2.4. Because I have > been having issues, due to change in the folder structure from 1.3 to 2.x. > Pls, anyon

Re: Best practices for general checks and redirects?

2013-01-03 Thread euromark
Sounds like something you could achieve with a custom Component and its methods initialize() and startup(). AppController's beforeFilter might also work, but it is usually cleaner to keep these things bundled in components if reasonable/possible. Am Donnerstag, 3. Januar 2013 01:14:29 UTC+1 sch

Re: Properly setting up CacheHelper

2012-12-26 Thread euromark
', 'Controller');` in the > /Controller/AppController.php > I think they should definitely add the importance of inclusion of this > fragment of code in the Cookbook. > > On Wednesday, December 26, 2012 7:08:24 PM UTC+4, euromark wrote: >> >> thats bec

Re: I want to change password using cake php

2012-12-26 Thread euromark
just follow the documentation: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords you might also want to read http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ use an alias field, hash and store the password. thats all there is to

Re: Properly setting up CacheHelper

2012-12-26 Thread euromark
thats because you forgot a vital part above your class NewsController extends AppController {} above it add `App::uses('AppController', 'Controller');` It is important that you always specify all used classes in your files at the top. Am Mittwoch, 26. Dezember 2012 16:00:40 UTC+1 schrieb Nvp:

Re: I want to change password using cake php

2012-12-25 Thread euromark
did you try google? Am Dienstag, 25. Dezember 2012 15:24:10 UTC+1 schrieb sweety: > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: search by username or email

2012-12-25 Thread euromark
not working is a little bit vage.. you should post in more detail what exactly is happening also note, that it usually is better to use array syntax as cake can clean/prepare the sql statements then a little bit better: $scope[] = array('User.' . $field . ' LIKE' => '%' . $filter[$field] .

Re: Penetration tests

2012-12-19 Thread euromark
since 3.0 is not even close to being used productively (3.0.0-dev) he most likely means "2.3. beta" ;) Am Mittwoch, 19. Dezember 2012 12:52:13 UTC+1 schrieb Sipatshi: > > > cakephp 3.0 Beta? where can i find it? > > > -- > *Von:* Jeremy Burns > > *An:* cake...@goog

Re: Can cake bake generate input list box in View?

2012-12-19 Thread euromark
9. Dezember 2012 03:12:24 UTC+1 schrieb Sam: > > Sorry for being vague. The table exist by itself and does not have any > relationship with any other tables. The fields are custom-selected. Will it > be a problem if the fields do not come from related tables? > > Thank you.

Re: Can cake bake generate input list box in View?

2012-12-18 Thread euromark
ay, December 18, 2012 7:50:49 PM UTC+8, euromark wrote: >> >> do you mean like select boxes? with options filled etc? >> >> >> Am Dienstag, 18. Dezember 2012 10:41:52 UTC+1 schrieb Sam: >>> >>> Dear CakePHP experts, >>> >>> May

Re: Can cake bake generate input list box in View?

2012-12-18 Thread euromark
do you mean like select boxes? with options filled etc? Am Dienstag, 18. Dezember 2012 10:41:52 UTC+1 schrieb Sam: > > Dear CakePHP experts, > > May I know if it is possible to use Cake Bake to auto-generate code that > will display an input listbox in View? If yes, how do I specify the > diffe

Re: concerns regarding arrays in urls

2012-12-16 Thread euromark
any comments here? :) how would you handle it? or do you just let php throw errors and notices here for your log files? Am Montag, 10. Dezember 2012 16:26:16 UTC+1 schrieb euromark: > > By accident and looking at the error logs I found something that concerns > me. > Currently s

Re: Baking fixtures for existing models

2012-12-14 Thread euromark
i would very much welcome that. Currently baking fixtures really is a bit of a mess. Especially, if you try to do that with plugins in your app. Due to the missing model connection it would also always bake all fixtures for all models without respect to the plugin. So some better handling here wo

Re: Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread euromark
see the documentation or lots of google results like http://stackoverflow.com/questions/6988160/cakephp-updateall-issues they all state the same: you need to manually escape for updateAll() Am Mittwoch, 12. Dezember 2012 18:45:50 UTC+1 schrieb polutan polution at all: > > I get SQL error when d

Re: CakePHP in Production throws odd error when inside a folder

2012-12-12 Thread euromark
is that folder in /webroot/ ? if not it should be. that is the only folder which (with all subfolders) is publically accessible for normal setups. Am Mittwoch, 12. Dezember 2012 01:23:40 UTC+1 schrieb Athan Clark: > > Hi everyone, I'm having a bit of trouble getting my app installed properly >

Re: Is overriding AppController's beforeFilter() always recommended ?

2012-12-11 Thread euromark
you can omit those methods if they dont do anything else except for calling the parent the cookbook merely offers examples on how you would do it if you needed it so yes, from an oop point of view, pretty useless Am Dienstag, 11. Dezember 2012 22:02:46 UTC+1 schrieb alaxos: > > While answering

concerns regarding arrays in urls

2012-12-10 Thread euromark
By accident and looking at the error logs I found something that concerns me. Currently sth like this is used by probably most of us: if (!empty($this->request->params['named']['sort'])) { $sort = strtolower($this->request->params['named']['sort']); // we expect a string in 99% of al

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-09 Thread euromark
@cricket I think you messed sth up earlier. the dev messages (domain dev) are the ones not public. the normal core messages will very much end up in the frontend (being times/dates for examples or other global stuff) its just that they do not change that often - compared to the app ones. Am S

Re: Model-query not working with virtualFields

2012-12-07 Thread euromark
ver? > i dont have any outputs by binding sql-dump element or any way else. > > M. > > Am Freitag, 7. Dezember 2012 16:02:11 UTC+1 schrieb euromark: >> >> this is not google code ;) the method I showed you merely has a "working" >> distance query to use as v

Re: Model-query not working with virtualFields

2012-12-07 Thread euromark
oh.. and if (isset($radius)) {} is pretty bad with false as a default value either use NULL as default or/AND use just if here: if ($radius) {} Am Freitag, 7. Dezember 2012 16:02:11 UTC+1 schrieb euromark: > > this is not google code ;) the method I showed you merely has a &q

Re: Model-query not working with virtualFields

2012-12-07 Thread euromark
ot second. > I dont know how to solve this. > Is there a way to get the statement how cake build it? Maybe this way i > can find any errors. > > Am Freitag, 7. Dezember 2012 15:27:16 UTC+1 schrieb euromark: >> >> no errors? just an empty resultset? >> what is the

Re: Model-query not working with virtualFields

2012-12-07 Thread euromark
no errors? just an empty resultset? what is the query you result in? Until very recently I got a bug in my distance query, as well. Maybe thats what happens here? might be just some () missing or $lng instead of $lng somewhere To confirm that you could try using my (now correctly working) behavi

Re: Extracting core & validation messages for I18N with the cake shell

2012-12-06 Thread euromark
why not running it twice? once for the core and once for the app? Am Donnerstag, 6. Dezember 2012 09:24:25 UTC+1 schrieb Cyrille Faucheux: > > Hi everyone, > > I'm trying to internationalize an application, and I face some problems > with the I18N shell when extracting messages. > > When I run t

Re: A list of open source webapps to study ?

2012-12-06 Thread euromark
seriously? 1.2 cheatsheets?...^^ Am Donnerstag, 6. Dezember 2012 15:10:55 UTC+1 schrieb crisuwork: > > You can check these projects from github for if you wnat to read and see > how the apps are made: > > http://maran-emil.de/nodes/52-open-source-cakephp-projects-and-resources > http://maran-emi

Re: Missing View

2012-11-30 Thread euromark
if it is the "Users" Controller it should be in "Users" folder (not the plural s) why would your application look in the "User" folder? thats what you got to figure out Am Freitag, 30. November 2012 11:19:21 UTC+1 schrieb marco metal: > > You should create a ctp file index.ctp inside you folder

Re: Custom login

2012-11-30 Thread euromark
you might be looking for sth I call qLogins http://www.dereuromark.de/2012/02/08/qlogin-quicklogins-fur-cakephp/ I use passwords that can be made valid for a single request, log the user in directly (either by link or by form) Am Freitag, 30. November 2012 01:09:07 UTC+1 schrieb cricket: > > I'

Re: Problem with Elements

2012-11-30 Thread euromark
you might be looking for sth I call qLogins http://www.dereuromark.de/2012/02/08/qlogin-quicklogins-fur-cakephp/ I use passwords that can be made valid for a single request, log the user in directly (either by link or by form) Am Freitag, 30. November 2012 00:23:29 UTC+1 schrieb Reuben: > > Hi

Re: Cake not putting quotes around field value when doing an UpdateAll

2012-11-25 Thread euromark
that's well documented: http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-updateall-array-fields-array-conditions Am Samstag, 24. November 2012 21:16:29 UTC+1 schrieb Daniel: > > I put quotes around the field value and this fixed the problem: > 'MsgReceived.sender' => '"'.$user

Re: Session is not expiring when browser is closed

2012-11-18 Thread euromark
you really should not rely on that! this is a browser-specific setting and most people have their browser in "default" mode - meaning: the session will not expire anyway so there is no point in forcing this - IMO Am Sonntag, 18. November 2012 15:33:47 UTC+1 schrieb Chandru M: > > Thanks for the

Re: Display user's name after login (PHP)

2012-11-12 Thread euromark
don't access the session array directly use $this->Session->read() via component or helper Am Montag, 12. November 2012 10:41:54 UTC+1 schrieb SCOFIELD_UA: > > If you use CakePHP, then the right way is to use > AuthComponent::loggedIn()

Re: form password default value

2012-11-09 Thread euromark
m doing is only an example to see how cakephp > works.Thank you for the advice. > > Il giorno venerdì 9 novembre 2012 01:40:24 UTC+1, euromark ha scritto: >> >> and if possible use an alias for your form field "password" like "pwd" as >> well as some

Re: How to get Cake to log error?

2012-11-09 Thread euromark
usually logging is enabled when debug mode is not on. try to set debug to 0 and check for log entries then Am Freitag, 9. November 2012 15:13:51 UTC+1 schrieb Daniel: > > I've got some exception code as follows: > > try { > if ($this->hashCaptcha(strtolower($this->request->data['User']['code'

Re: form password default value

2012-11-08 Thread euromark
and if possible use an alias for your form field "password" like "pwd" as well as some kind of "pwd_repeat" field to confirm the password (since you cant see it very often it is mistyped rendering the registration invalid then by accident): http://www.dereuromark.de/2011/08/25/working-with-passw

Re: Installing an existing site locally on MAMP

2012-11-08 Thread euromark
s, I have other sites set there. > > Do you think pick somewhere else on my machine? > > Thanks for your help! > > On Thursday, November 8, 2012 11:36:16 AM UTC+2, euromark wrote: >> >> why are you then still trying to access it via localhost? >> >>

Re: Installing an existing site locally on MAMP

2012-11-08 Thread euromark
why are you then still trying to access it via localhost? the url would then be `http://bundle.local/` - which then would correctly call the webroot index.php and dispatch accordingly Am Donnerstag, 8. November 2012 07:19:44 UTC+1 schrieb Neil Berrow: > > I've gotten this far (see image), here'

Re: Can share common functions across different tables?

2012-11-08 Thread euromark
yes, in your app controller so if you dont want your global AppController to be that generic, use a plugin and its plugin AppController. this way you will get what you want without effecting the rest of the site. plugin Webservice for example with WebserviceAppController (having add/edit/... ac

Re: Auth->deny fails after Auth->allow('*')

2012-11-04 Thread euromark
you do realize that without always(!) noting the cake version you are working on, that no one will be able to help you here? the way it works changed quite a bit over the versions. one could only guess right now. Am Sonntag, 4. November 2012 01:16:57 UTC+1 schrieb Sam: > > Dear CakePHP experts,

Re: preg_match Warning on Email

2012-11-02 Thread euromark
instead of explode I would use Cake's String method: $emails = String::tokenize($emails[0]); Am Freitag, 2. November 2012 15:47:54 UTC+1 schrieb chetan varshney: > > Now I assume you are taking input as comma separated multiple emails. If > yes > use code like. > > In Model > > "email" => arra

Re: Is it really neccessary to use h function on all fields?

2012-10-25 Thread euromark
no, only for fields which can contain strings and therefore potentially harmlos characters so bools/ints/floats and date fields are usually not necessary to wrap in h() Am Donnerstag, 25. Oktober 2012 19:08:18 UTC+2 schrieb Daniel: > > Is it really neccessary to use the h function on int, boole

Re: CakeResponse::expires() Fatal Error

2012-10-25 Thread euromark
it seems you are triggering an error and the CakeErrorController does not know how to handle this method but why are you doing that statically? if anything it should be $this->response->expires() Am Donnerstag, 25. Oktober 2012 12:11:10 UTC+2 schrieb gimmebucks: > > anyone? > > On Monday, 22 O

Re: Cake 2.0 NOT IN array is not working

2012-10-24 Thread euromark
why the extra array? array('conditions' => array('NOT' => array('Person.id' => $scouts))) Am Mittwoch, 24. Oktober 2012 22:56:13 UTC+2 schrieb Matt: > > If that was just a typo in your email, maybe this would work > > $this->set('people', $this->Scout->Person->find(' > list', array('conditions'

Re: URLencoding works for all characters except / and \

2012-10-23 Thread euromark
you can either write your own escaping function who takes care of those characters, or better, use base64encode to pass those special character strings via $_GET but there you also need to tweak it a little bit, see the CakeDC search plugin for details where I fixed the method to safely encode t

Re: CakeEmail Class on Shell not delivering message.

2012-10-19 Thread euromark
schrieb GerarD: > > I did what euromark said and it's working. I was using cakephp 2.1, so I > had to migrate to the current version 2.3 since CakeEmail::domain() was > added on 2.2. > > BTW.. I had to make a copy of AppHelper on my View/Helper folder so I >

Re: CakeEmail Class on Shell not delivering message.

2012-10-19 Thread euromark
also dont forget to set a valid domain for your messageId manually, as the CLI does not know the domain your website runs on. http://book.cakephp.org/2.0/en/appendices/2-2-migration-guide.html#cakeemail Am Donnerstag, 18. Oktober 2012 19:35:00 UTC+2 schrieb cricket: > > Have you checked the mail

Re: Cakephp find order by then group by

2012-10-19 Thread euromark
I remember that I ran into this issue at least 3 times in the past and solved it this way: http://stackoverflow.com/questions/8707048/last-x-blog-entries-but-only-once-per-user a subquery that gets the results first. otherwise you will not be able to sort (since grouping happens prior to the sort

Re: Odd array structure when using Model->query()

2012-10-17 Thread euromark
why not using virtual fields? then there won't be any odd format returned by find() Am Mittwoch, 17. Oktober 2012 07:37:15 UTC+2 schrieb Andras Kende: > > Here is similar query, maybe helpful: > > $unit = ($unit == 'km') ? 1.609344 : 1 ; > > $results = $this->Location->find('all', array( > 'limit'

Re: Progressive PHP to CakePHP

2012-10-16 Thread euromark
how should anyone without a crystal ball or magic capabilities be able to answer that? without any details or the code? but in general: yes Am Dienstag, 16. Oktober 2012 11:39:28 UTC+2 schrieb Robert Haylor: > > Hi All, > > Hope all is well. > > Quick question, I have been working on a websi

Re: Not being able to send data to my controller

2012-10-09 Thread euromark
cakephp3? seriously? ;) nobody is using this - since it is not even in any usable stage at all. the problem is: a beginner is not able to tell the difference between a real bug and user error. therefore it it not a good idea to start off with this version. use cake 2.2 or 2.3 (if you must use t

Re: paginator caused duplicate content(google)

2012-10-04 Thread euromark
you can use canonical tag and the main index page as url. Am Donnerstag, 4. Oktober 2012 18:28:34 UTC+2 schrieb Sipatshi: > > > Hi all, > > the cakePHP paginator caused duplucate content. If i click next page i get > page:2(thats ok) but i if click back they give me page:1 ! > it is possible th

Re: User and Password

2012-10-04 Thread euromark
use an alias in the forms http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ Am Donnerstag, 4. Oktober 2012 17:42:15 UTC+2 schrieb cosinusweb: > > Hello > > When I add a user in the database the password is cryped > public function beforeSave($options = array()) { >

Re: html attributes on 'year' form helper

2012-10-04 Thread euromark
use Form->input() and type=>date + dateFormat=>Y Am Donnerstag, 4. Oktober 2012 09:51:31 UTC+2 schrieb Mike Griffin: > > It seems that the year helper doesn't support html attributes. Looking > at the API (http://api.cakephp.org/class/form-helper#method-FormHelperyear), > > it only accepts a sm

Re: CakeEmail Cli Environtment went to spam/junk folder

2012-10-03 Thread euromark
http://book.cakephp.org/2.0/en/appendices/2-2-migration-guide.html#cakeemail try to use the new domain method to make sure the message id is valid Am Mittwoch, 3. Oktober 2012 06:22:28 UTC+2 schrieb rijal.ase...@gmail.com: > > I have sent a newsletter using CakeEmail, I send to account gmail, yah

Re: cakephp console command : cake bake issue

2012-10-01 Thread euromark
schrieb webfacer: > > I know. but why the console command don´t do it it self? Do i can do > something to let the command bake create the htaccess? > > thx > > Am Montag, 1. Oktober 2012 23:59:31 UTC+2 schrieb euromark: >> >> you can just steal the .htacess from the

Re: cakephp console command : cake bake issue

2012-10-01 Thread euromark
you can just steal the .htacess from the github rep: https://github.com/cakephp/cakephp Am Montag, 1. Oktober 2012 21:15:22 UTC+2 schrieb webfacer: > > After creating the project it doesen´t work because the command "cake > bake" doesn´t bake the root htaccess which will point to the /app/webroo

Re: function beforeFilter

2012-09-27 Thread euromark
hy not replace all of that with the Auth component? > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 26 Sep 2012, at 13:38:22, Chris > > wrote: > > hi euromark,... I have try: > // loadModel('user'); > App::im

Re: function beforeFilter

2012-09-26 Thread euromark
maybe its the ancient loadModel() function? Am Mittwoch, 26. September 2012 14:26:23 UTC+2 schrieb Chris: > > hi Jeremy,... can't access the site (secure area) with username and > password,... loosing session I think,... can't read user,... and function > beforeFilter() is in a app-controlle

Re: Simple Authentication and Authorization Application

2012-09-21 Thread euromark
you are mixing 1.x and 2.x they are absolutely not compatible in terms of Auth the 2.x uses the request object 1.3 doesnt have that yet what tutorial are you refering to? also, why not using the current 2.2 instead of some outdated cake version? Am Freitag, 21. September 2012 12:21:25 UTC+2 s

Re: Problem with AssetCompress

2012-09-20 Thread euromark
st for test? > > Note: I am with debug level 2 > > On Thursday, September 20, 2012 9:28:58 AM UTC-3, euromark wrote: >> >> not sure if you are allowed to add filters to the files. >> I also defined the path to css in my config: >> >> [css] >> cach

Re: Problem with AssetCompress

2012-09-20 Thread euromark
t; > On Thursday, September 20, 2012 9:01:48 AM UTC-3, euromark wrote: >> >> is your js_libs defined in your asset_compress.ini? >> and if so, how? >> >> Am Donnerstag, 20. September 2012 13:56:16 UTC+2 schrieb Glauco Custódio: >>> >>> I deleted error.

Re: Problem with AssetCompress

2012-09-20 Thread euromark
:\my_project\code\app\webroot\index.php(96): > Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse)) > #1 {main} > > The files that are set in asset_compress.ini exists inside webroot/css and > webroot/js... > > On Wednesday, September 19, 2012 8:06:13 PM UTC

Re: Problem with AssetCompress

2012-09-19 Thread euromark
check out the error logs. there should be sth in /tmp/logs/error.log probably that a file cannot be found - therefore the whole process stops with a 404 Am Mittwoch, 19. September 2012 19:51:07 UTC+2 schrieb Glauco Custódio: > > Hi guys, I am trying to use AssetCompress but I am with problems. >

<    1   2   3   4   5   6   7   8   9   10   >