Re: missing plugin exception

2012-01-10 Thread euromark
596] Some thing to look into cake2.1a On 10 Jan., 18:50, euromark dereurom...@googlemail.com wrote: Not sure if that's a bug worth fixing. Calling `domain//index.php` should probably throw another exception... But which? On 10 Jan., 18:40, euromark dereurom...@googlemail.com wrote

Re: CakePHP 2.1-alpha just baked

2012-01-09 Thread euromark
very nice new features :) great job PS: only a few minor glitches - for instance somehow the auth component (and allow *) doesnt do what it should anymore - trying to figure that out right now. other than that backwards comp. seems to be fine and former 2.0 apps are running perfectly. On 9

Re: CakePHP 2.1-alpha just baked

2012-01-09 Thread euromark
, at 10:54:34, euromark wrote: very nice new features :) great job PS: only a few minor glitches - for instance somehow the auth component (and allow *) doesnt do what it should anymore - trying to figure that out right now. other than that backwards comp. seems to be fine and former

Re: How to import another class into a component

2012-01-09 Thread euromark
what type is your class? a component? helper? model? lib? On 10 Jan., 01:10, Daniel danwgr...@gmail.com wrote: From within a component I want to do the following: class MyComponent extends Component {         function myfunc() {                 $my_obj = new MyClass();                

Re: CakePHP 2.1-alpha just baked

2012-01-09 Thread euromark
you are right, jose. allow() makes it work again. allow(NULL) not, though. I wonder if that could be seen as a bug (since NULL is usually equal to void and equal to nothing)... On 9 Jan., 20:37, majna majna...@gmail.com wrote: There's one more nice feature added -multi-model fieldList

Re: Error: OrdersController could not be found.

2012-01-07 Thread euromark
@ersin: its 2.0 so there should be no $name property at all On 7 Jan., 16:53, Ersin Demirtas ersi...@gmail.com wrote: Also check the variable $name = it should be $name = 'orders'; On Sat, Jan 7, 2012 at 3:01 PM, Tilen Majerle tilen.maje...@gmail.com wrote: show us your controller

Re: Error: OrdersController could not be found.

2012-01-07 Thread euromark
a) its unnecessary redundancy b) who cares about one more inflection? it creates more trouble writing it. but in the end it is also not worth the time debating it..^^ On 7 Jan., 21:51, AD7six andydawso...@gmail.com wrote: On Jan 7, 12:33 pm, schulte.christ...@googlemail.com

Re: CakePHP 2 - single core with two applications, one inside the other

2012-01-06 Thread euromark
since you are new to cake I will outline a common approach on this pretty quick: you would only use one app (not two - bad idea, too much redundancy) you would then use an admin prefix which allows you to distinguish between - user sections: /controller/action/ - admin sections:

Re: Dropdownfeld

2012-01-06 Thread euromark
you should also do stuff like that in beforeRender() stuff = all things that have to be passed down to view On 5 Jan., 19:31, Hans Heidemann internet.ganz@googlemail.com wrote: Hello Ivo, Please check, if you have connected your Country Model to the Controler. You can do this via

Re: extract language-strings via script?

2012-01-05 Thread euromark
yes it is I have build a basic Translate plugin which extracts via this task to a tmp file, imports them and allows modifying/translating via admin interface and then dumps the translated strings back to po files in 2.0 App::uses('ExtractTask', 'Console/Command/Task'); $this-Task = new

Re: CakePHP 2.0 Percent Complete

2012-01-05 Thread euromark
many of us would use sth like https://github.com/MSeven/cakephp_queue and not making the user/frontend depend on the result/progress On 5 Jan., 22:18, GB george.m.b...@gmail.com wrote: Based on my research CakePHP does not handle well the scenario that may require updating a user periodically

Re: How to add varied content in posts?

2012-01-05 Thread euromark
as a vendor? :) in my case it is in plugin vendor (but could also be app one) my example: App::import('Vendor', 'Tools.nbbc/nbbc'); class BbcodeLib extends BBCode { public function __construct($settings = array()) { parent::BBCode(); //custom overrides

Re: Having PHP generate a PDF

2012-01-04 Thread euromark
i think tcpdf is capable of doing sth like that because there you can set a custom header and footer. http://www.tcpdf.org/examples.php you could give it a try On 4 Jan., 05:34, Yves S. Garret yoursurrogate...@gmail.com wrote: Not sure if that will cut the mustard.  I looked at the list of

Re: Function isOwnedBy

2012-01-04 Thread euromark
take a second look and think about it you might figure out why it is not doing what you expect but its a logic error of yours not of cake hint: returning true before actually checking something doesnt end well :) On 4 Jan., 16:49, heohni heidi.anselstet...@consultingteam.de wrote: HI, I

Re: How to add varied content in posts?

2012-01-04 Thread euromark
Daniel danwgr...@gmail.com On Jan 3, 7:42 pm, euromark dereurom...@googlemail.com wrote: ... i usehttp://nbbc.sourceforge.net/ Thanks, it looks good. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: MenuBuilder doesn't work with cakephp 2.0 (or 2.1)

2012-01-04 Thread euromark
first of all you are not giving us any links or code etc kinda hard to help you without anything concrete to go on On 4 Jan., 20:19, ton jansen newcol...@gmail.com wrote: I tried almost everything to get this working, but allas. It was working before I switched tot 2.0.5. Controller class

Re: Using Configure or other methods to set app-wide constants

2012-01-03 Thread euromark
, geste jim.ho...@gmail.com wrote: Gary, euromark, OK, yes I was able use Configure::write in boostrap.php. If I can just use the CakePHP database connector, I think I'll just write a small snippet that looks up that secondary identifier and add that to bootstrap.php. Thanks

Re: How to add varied content in posts?

2012-01-03 Thread euromark
: On Jan 3, 1:29 am, euromark dereurom...@googlemail.com wrote: my favorite is bbcode, as well. Which version of bbcode parser do you use? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Having PHP generate a PDF

2012-01-03 Thread euromark
@roundrightfarm I dont think such a helper is part of the core, though :) On 3 Jan., 17:25, Yves S. Garret yoursurrogate...@gmail.com wrote: That sounds interesting, but will it work with my requirement of having the header and the title get copied over to the next page with the table? On

Re: session.gc_maxlifetime

2012-01-03 Thread euromark
nobody else bothered by the short default lifetime? :) On 2 Jan., 14:14, euromark dereurom...@googlemail.com wrote: Woudnt it make sense for the CakeSession to modify the session.gc_maxlifetime param, as well? As of right now it just sets the other params. But the session file still gets

Re: session.gc_maxlifetime

2012-01-03 Thread euromark
IMO Cake should set gc_maxlifetime to 'timeout' config do you say that it should but doesnt right now? or do you mean: it already does? because from looking at the code I could not confirm that thx! On 3 Jan., 23:11, majna majna...@gmail.com wrote: fixed typo: Configure::write('Session',

session.gc_maxlifetime

2012-01-02 Thread euromark
Woudnt it make sense for the CakeSession to modify the session.gc_maxlifetime param, as well? As of right now it just sets the other params. But the session file still gets deleted way too soon in many cases The default setting is absurd: 1440 = 24 minutes The question is - in what cases does the

Re: Display both featured AND last posts.

2012-01-02 Thread euromark
create a second query, pass the result on to the view and loop over it absolutely no different from your above code. On 2 Jan., 16:00, J. contact.mysparet...@gmail.com wrote: I want to display both feat. and last posts on my home page. So, in my Pages controller, I have this :              

Re: Routing to /img a request to /app/img

2012-01-02 Thread euromark
one question: is fixing the obvious error in the poor previous configuration not an option? if would probably fix other similar errors, as well On 2 Jan., 20:09, Mario mario.calli...@gmail.com wrote: Hi all! One question on routing: due to a poor previous configuration I would need all the

Re: Using Configure or other methods to set app-wide constants

2012-01-02 Thread euromark
yes, you can use Configure::write() that's absolute fine, but try to set it in bootstrap.php if they are supposed to be global (side wide) that would be a cleaner approach than using some AppController method to do so. On 2 Jan., 22:48, geste jim.ho...@gmail.com wrote: All, I am looking for

Re: cakephp 2.0.4: How to use Session Component in Plugin Components?

2012-01-02 Thread euromark
did you forget to add var $components = array('Session') to this component? that's probably it On 3 Jan., 02:04, Salines nikola.parad...@gmail.com wrote: Undefined property: TwitterAuthComponent::$Session [*APP/Plugin/Twitter/Controller/Component/TwitterAuthComponent.php*, line *133*]

Re: How to add varied content in posts?

2012-01-02 Thread euromark
my favorite is bbcode, as well. clean, understandable for visitors and easy to adjust and extend. it also has a high level of security if applied correctly. I also like that it decouples html from the markup. you can add stuff like [youtube]someid[/youtube] etc which will translate into the real

Re: get current url as array

2011-12-31 Thread euromark
$this-Html-link('Title', $url); On 28 Dez., 21:59, euromark dereurom...@googlemail.com wrote: ...or for any url for that matter (for adding some named/pass params etc) PS: I forgot         if (isset($urlParams['prefix'])) {                 unset($urlParams['prefix']);         } On 28 Dez

Re: get current url as array

2011-12-31 Thread euromark
-based... On 31 Dez., 13:04, mike karthauser mi...@brightstorm.co.uk wrote: You should be able to get the data you need in $this-params. Mike Karthauser Brightstorm limited Tel: 07939252144 On 31 Dec 2011, at 12:01, euromark dereurom...@googlemail.com wrote: any feedback? seems like

Re: Cake 1.3.11: Wrong singular of 'encounter_foes'

2011-12-29 Thread euromark
if you feel like this is a bug in cake, you can open a ticket for it: http://cakephp.lighthouseapp.com/projects/42648/tickets/ On 29 Dez., 08:57, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: http://book.cakephp.org/view/953/Inflections Jeremy Burns Class Outfit

Re: $this-ModelName-invalidFields(); return duplicates

2011-12-29 Thread euromark
as far as I know cake2 returns arrays for the fields by default - especially if there are multiple rules per field. if you only want the one error, you need to use last=true in your rules On 30 Dez., 00:21, Moiz moiz.bhukh...@gmail.com wrote: Hello there, Why does

Re: Problème paginator version 1.3

2011-12-28 Thread euromark
var $helpers = array('Paginator'); is probably missing (see the documentation on Pagination) On 28 Dez., 10:32, Tilen Majerle tilen.maje...@gmail.com wrote: Nice from you...but who understand your language ?? :) -- Lep pozdrav, Tilen Majerlehttp://majerle.eu 2011/12/27 Sabri

Re: Problème paginator version 1.3

2011-12-28 Thread euromark
usually you dont need that because it is added automatically either way, you should address it like $this-Paginator-numbers() On 28 Dez., 16:29, euromark dereurom...@googlemail.com wrote: var $helpers = array('Paginator'); is probably missing (see the documentation on Pagination) On 28 Dez

Re: Ajaxing a $this-Item-find('all') - twitter style.

2011-12-28 Thread euromark
isn't that per definition a pagination? ;) so why don't you use it then? you dont have to make your life harder than it is and yes - you can always set LIMIT to your desired limits ('limit'='10, 20') but then you need to make sure you know how many there are (for maximum) etc so in the end I am

Re: Render a view in new window from controller?

2011-12-28 Thread euromark
this is not possible with php On 28 Dez., 18:26, Chris Goodman stumpfar...@gmail.com wrote: I am in need of a way to render a view in a new window from the controller Like this fake code: $this-render('posts', target=_blank) So far my search for a solution has drawn a _blank :-) Has

Re: Cake 1.3.11: Wrong singular of 'encounter_foes'

2011-12-28 Thread euromark
your expectation would be encounter_foe, right? On 28 Dez., 14:06, Zaphod beckerma2...@googlemail.com wrote: Hi there, I think there's a bug in 1.3.11 which converts a link of '/ encounter_foes' to the singular form 'encounter_fo' to get to the model. I did some research and found that

Re: When can we see the cookbook in Chinese ?

2011-12-28 Thread euromark
as soon as you are done writing it ;) i'd say On 28 Dez., 13:32, oldbestfox2 oldbestf...@yahoo.com.cn wrote: I come from China, so I prefer reading cookbook in Chinese. Now I'm looking forward to the Chinese version and when can we see it? Thank you. -- Our newest site for the community:

Re: Atypical login problem

2011-12-28 Thread euromark
without specific code from what you wrote so far (AppController, login action of controller etc) it isnt possible to help you On 28 Dez., 09:05, azim artur.zylin...@gmail.com wrote: Dear Cooks, I do have some serious problem with login action, which I couldn't solve whatsoever. Our

Re: How To Write Programme In PHP?

2011-12-28 Thread euromark
good thing you found CAKE(C A K E)php^^ = http://book.cakephp.org/ On 28 Dez., 17:10, nir neerav nirnee...@gmail.com wrote: Hello Guyz, I am new to PHP. I dont know how to start developing website in PHP. Please I need a Step by Step Guidence From you. Including which Tools I  need To Write

Re: When can we see the cookbook in Chinese ?

2011-12-28 Thread euromark
ops, I accidently clicked on mark as spam trying to close the window - that seems to be irreversible. please disregard. On 28 Dez., 20:04, euromark dereurom...@googlemail.com wrote: as soon as you are done writing it ;) i'd say On 28 Dez., 13:32, oldbestfox2 oldbestf...@yahoo.com.cn wrote

get current url as array

2011-12-28 Thread euromark
am I missing sth or is there no url() method etc for returning the current url as array? I only know this way: $urlParams = Router::getParams(true); $urlParams = am($urlParams, $urlParams['named'], $urlParams['pass']); unset($urlParams['named']);

Re: get current url as array

2011-12-28 Thread euromark
...or for any url for that matter (for adding some named/pass params etc) PS: I forgot if (isset($urlParams['prefix'])) { unset($urlParams['prefix']); } On 28 Dez., 21:04, euromark dereurom...@googlemail.com wrote: am I missing sth or is there no url() method

Re: AppController not loading ?

2011-12-27 Thread euromark
You do not need App::uses('Controller', 'Controller'); but it's not wrong to declare it! furthermore, it is even wise to do that because if you test your application (via phpunit) and create a single unit test for the app controller or probably any other controller you would otherwise run into a

Re: Use classes from a different controller

2011-12-26 Thread euromark
variable ? On 25 déc, 22:36, euromark dereurom...@googlemail.com wrote: classic design failure you shouldn't (ever) use a controller in another controller design your actions the way that they use the model to get the data this way you can call these model methods from other

Re: how to use multiple database connections.

2011-12-26 Thread euromark
what is the point in creating redundancy across two databases - and two different types of dbs? On 26 Dez., 06:52, Jack wankhede1...@gmail.com wrote: sync means when i am inserting record in mysql database simultaneously i want add/edit/delete same record in postgres database too. means same

Re: Paginate an array

2011-12-26 Thread euromark
you are probably looking for http://book.cakephp.org/view/1231/Pagination On 26 Dez., 17:40, J. contact.mysparet...@gmail.com wrote: People here are of great help, so I figured out I may ask here. I have an Item controller (An Item is a post on my website) with this function :     public

Re: Use classes from a different controller

2011-12-25 Thread euromark
classic design failure you shouldn't (ever) use a controller in another controller design your actions the way that they use the model to get the data this way you can call these model methods from other controllers, as well so it boils down to $this-Model-ownPosts($uid) etc On 25 Dez.,

Re: Cake 2.0.4 : how to display logout if logged, else display login

2011-12-24 Thread euromark
it does cause the problem :) usually a good IDEA would automatically display a parse error On 24 Dez., 02:52, Geoff Douglas drdouglas...@gmail.com wrote: Under the logged in condition... you are using double quotes twice... could cause a problem. -- Our newest site for the community: CakePHP

Re: Using Model constants all over app

2011-12-23 Thread euromark
that's exactly how I do it: http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/ On 23 Dez., 11:23, func0der funco...@web.de wrote: Hey guys, i worked a lit with Magento in the last months. They used, in my opinion, a really good way to configurate and/or access

Re: link and image helper error

2011-12-23 Thread euromark
http://stackoverflow.com/questions/8616303/link-and-image-helper-error On 23 Dez., 14:11, ahmed fakher spcial...@gmail.com wrote: i try to use lightbox , i was follow all steps in this link but the problem in the code a href=images/image-1.jpg rel=lightbox img src=images/thumb-1.jpg

Re: Cake 2.0.4 : how to display logout if logged, else display login

2011-12-23 Thread euromark
$session was already outdated in 1.3 $this-Session is the correct usage On 23 Dez., 17:26, JonStark jean...@gmail.com wrote: I want to do this on cake 2.0.4 (new to cake), but this does'nt work:         ?php          if ($session-read('Auth')) {                 echo(logged);              

Re: Cake 2.0.4 : how to display logout if logged, else display login

2011-12-23 Thread euromark
on the net. So it's more like :       ?php          if ($this-Session('Auth')) {                 echo(logged);                 }          else {                 echo(not logged);                 }         ? ? Thanks a lot for your help ! On 23 déc, 19:41, euromark dereurom

Re: Cake 2.0.4 : how to display logout if logged, else display login

2011-12-23 Thread euromark
more can be found here: http://book.cakephp.org/2.0/en/core-libraries/helpers/session.html?highlight=session#SessionHelper On 23 Dez., 20:01, euromark dereurom...@googlemail.com wrote: ok, that makes sense. no - the method call stays the same! btw: most cake developers would check on the id

Re: CakePHP 2.0 Email

2011-12-23 Thread euromark
I use this: http://www.dereuromark.de/2011/12/15/tools-plugin-part-2-contact-form/ The EmailLib is described pretty good in the book: http://book.cakephp.org/2.0/en/core-utility-libraries/email.html?highlight=email#CakeEmail On 23 Dez., 22:04, creat1v1ty justin.r.ran...@gmail.com wrote: Hello

Re: editing user data when password doesn't change

2011-12-22 Thread euromark
this might help: http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ On 22 Dez., 11:09, Sam Sherlock sam.sherl...@gmail.com wrote: Intercept the password in beforeFilter - S On 22 Dec 2011 02:08, elogic asymo...@elogicmedia.com.au wrote: Hi All, I am using Auth

Re: Questions about the field modified, created, updated

2011-12-22 Thread euromark
you only need created and modified On 22 Dez., 10:54, Sam Sherlock sam.sherl...@gmail.com wrote: Updated or modified which you use is upto you When you follow the conventions cake automagically does some stuff. Whilst still remaining flexible. - S On 22 Dec 2011 08:31, socrates

Re: CakePHP 2.X

2011-12-22 Thread euromark
@ M Kaufman: What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? Nice example^^ Must be sth pretty important you are programming. you could simply use two computers then instead of making yourself the most isolated human

Re: What's all this SQL being run when running a controller unit test plan?

2011-12-21 Thread euromark
you could also put this into your bootstrap: /** * Can compare two float values * @link http://php.net/manual/en/language.types.float.php * @return boolean */ function isFloatEqual($x, $y, $precision = 0.001) { return ($x+$precision = $y) ($x-$precision = $y); } On 21 Dez.,

Re: Form Helper: How can I control the HTML output? Specifically for radio buttons and check boxes

2011-12-21 Thread euromark
you could probably extend the form helper (FormExtHelper etc) and work your changes in in this class. you could also try to use inputDefaults() in each form, but will be less DRY. On 20 Dez., 23:04, Ronen Amiel holytay...@gmail.com wrote: Hey everyone, I'm trying to get the hang of CakePHP, I

Re: CakePHP 2.0 Migration guide

2011-12-21 Thread euromark
hey there you do know that google has been invented a few years ago (awesome tool!), don't you? anyway: http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html On 21 Dez., 10:28, omar.abdallah omar@gmail.com wrote: Hello all, Is there any CakePHP 2.0 migration guide available?

Re: CakePHP 2.X

2011-12-21 Thread euromark
a (web)programmer that doesnt have internet? :) On 21 Dez., 23:56, Ucha19871 ucha19871...@yahoo.com wrote: ooh thx.. I know this documentation,but .. do you have a PDF version of this documentation .. or .CHM file.. so i can use it locally, without Internet.. -- Our newest site for the

Re: Unit tests in CakePHP

2011-12-20 Thread euromark
you should tell us what cake version you are using :) On 20 Dez., 16:13, Yves S. Garret yoursurrogate...@gmail.com wrote: Hey guys, I'm embarking on writing some unit tests for a simple app.  I honestly don't know what I'm doing, but am looking at the following resources as a start:

Re: comparing arrays

2011-12-20 Thread euromark
basic php you cannot override $discount_price locally and expect it to change anything outside of the loop and the scope of this change if(!isset($discount_price)) $discount_prices[$key] = $item_prices[$key]; On 20 Dez., 16:37, roundrightfarm roundrightf...@gmail.com wrote: The two arrays made

Re: comparing arrays

2011-12-20 Thread euromark
$weeks_prices[$key] = $discount_price;                 } On Dec 20, 8:14 am, euromark dereurom...@googlemail.com wrote: basic php you cannot override $discount_price locally and expect it to change anything outside of the loop and the scope of this change if(!isset($discount_price

Re: Using encryption to verify parameters

2011-12-19 Thread euromark
@douglas: it destroys the whole concept of urls - to know where you currently are. bookmarking, history etc - everything doesnt work anymore. well, if you really want all that for an app - fine but I am not convinced that cloaking urls adds any security. the params of urls shoudnt be what you

Re: CakePHP 2.0 and Form Wizard

2011-12-19 Thread euromark
did you try to upgrade it using an upgrade shell? this should update to 2.0 format/style and might make it work out of the box then On 19 Dez., 07:33, Clint Finnigan ctf...@student.monash.edu wrote: Has anyone managed to get this Form Wizard:https://github.com/jaredhoyt/cakephp-wizard/which

Re: TextHelper-Truncate Fails!

2011-12-19 Thread euromark
if you think this is a bug, you can open a ticket for it: http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets ideally with some patch and/or test case attached personally, I think it is difficult to truncate a html text correctly in all situations. but maybe there is an easy solution

Re: Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread euromark
to refine thiago's 2. question: what is the displayField of the country model? if it is not title or name, you need to set displayField manually for bake and for scaffold forms On 19 Dez., 16:50, Thiago Belem cont...@thiagobelem.net wrote:    1. The relation is defined on the models    2. You

Re: best use of var $uses in a controller

2011-12-19 Thread euromark
I use var $uses for the primary model of the controller e.g. Posts = uses Post Contact = uses Tools.Contact (Plugin model) MembersController = uses User Account = uses User etc I also think this is the normal use case for this property and would never put more than one model into it. The main

Re: save() not working

2011-12-18 Thread euromark
yes, if there are no validation rules than there will be always an empty result, of course. did you debug the save query? does it return FAlSE? On 18 Dez., 08:36, roundrightfarm roundrightf...@gmail.com wrote: Yes, its set to 2 On Dec 17, 11:23 pm, Geoff Douglas drdouglas...@gmail.com wrote:

Re: show id in url on function call

2011-12-18 Thread euromark
@geoff: but if he doesnt do a 301 redirect he's gonna shoot himself in the foot On 18 Dez., 08:06, Geoff Douglas drdouglas...@gmail.com wrote: The only way to change the URL in php, is by doing a redirect. In straight PHP you would set the header location. In Cake you can just do a redirect.

Re: Using encryption to verify parameters

2011-12-18 Thread euromark
what? seriously? I heard a lot of crazy things in my life - but that tops them all^^ On 18 Dez., 23:55, Daniel danwgr...@gmail.com wrote: I am thinking of encrypting all parameters (in the URL) along with a secret key, so they cannot easily be faked.  However I do not know which encryption to

Re: Using encryption to verify parameters

2011-12-18 Thread euromark
that road before On 19 Dez., 00:32, Daniel danwgr...@gmail.com wrote: On Dec 18, 11:20 pm, euromark dereurom...@googlemail.com wrote: what? seriously? I heard a lot of crazy things in my life - but that tops them all^^ Sarcastic B*d -- Our newest site for the community: CakePHP Video

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-17 Thread euromark
to suck eggs :) Regards, Tim On Fri, Dec 16, 2011 at 8:21 AM, euromark dereurom...@googlemail.comwrote: yes, definitely otherwise it cannot be guarantied that either one of the upgrade shells will find the folders and its files. It might work (most paths are relative to the constants

Re: img src not working for me

2011-12-17 Thread euromark
@Timothy you should always use the helper if possible this way your urls stay for flexible and compatible to other environments there is no overhead to wry about - so try to go down that road On 16 Dez., 21:47, Daniel danwgr...@gmail.com wrote: I found a bug in my view file.  I got it working

Re: show id in url on function call

2011-12-17 Thread euromark
for search engines you can use canonical tag but besides that your method looks pretty wrong to me what if an invalid url is passed? it should be more like if (!id || !(record = findFirstById)) { record = randomOne } On 16 Dez., 22:43, meinstream m.r.scho...@googlemail.com wrote: Hi,

Re: save() not working

2011-12-17 Thread euromark
did you try to debug $this-OsChoiceHistory-validationErrors or $this-OsChoiceHistory-invalidFields() ? they should contain an array of fields that probably made sure the save was unsuccessfull it would also be wise to debug the result of the last save() $res =

Re: save() not working

2011-12-17 Thread euromark
...@gmail.com wrote: did you try to debug     $this-OsChoiceHistory-validationErrors or   $this-OsChoiceHistory-invalidFields() how do I do this? and where do I go to see the results? Thanks On Dec 17, 9:26 am, euromark dereurom...@googlemail.com wrote: did you try to debug

Re: File type validation not working

2011-12-17 Thread euromark
For starters I see two possibly unrelated issues: a) you should use last=true in every rule b) $value = array_shift($check) does the trick, as well but did you actually try to debug your code before asking here? I doubt that $value contains a string either way. Usually uploads are arrays after a

Re: Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-17 Thread euromark
Why is $gallery_id your third param of link()? I find the error pretty self-explanatory... On 18 Dez., 01:06, Daniel danwgr...@gmail.com wrote: I am displaying an image in a view.ctp file: div class=images view h2?php  __('Image');?/h2         dl?php $i = 0; $class = ' class=altrow';?    

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-16 Thread euromark
, 7:38 pm, euromark dereurom...@googlemail.com wrote: just do it step by step and and fix the last occuring erros manually. there will always be sth that will not work out of the box. but it is manageable. it helps to have version control and have everything committed before starting

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-16 Thread euromark
yes, definitely otherwise it cannot be guarantied that either one of the upgrade shells will find the folders and its files. It might work (most paths are relative to the constants defined in the console/dispatcher) - but I am not sure about that. On 16 Dez., 17:15, McScreech

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-15 Thread euromark
1) no, its only partially specific some of the methods are really useful for you (see the comment in the class itself) some are not interesting for you 2) you may delete Helpers (probably didnt get deleted) On 15 Dez., 18:16, McScreech scre...@sympatico.ca wrote: Yaahooo!!! I appear to have

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-15 Thread euromark
PS: running cake Upgrade.Correct all should run the ones NOT specific to my app at one blow. On 15 Dez., 18:16, McScreech scre...@sympatico.ca wrote: Yaahooo!!! I appear to have upgraded successfully. Thanx VERY MUCH Mark! I had only two hitches after upgrading that prevented my app from

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-15 Thread euromark
just do it step by step and and fix the last occuring erros manually. there will always be sth that will not work out of the box. but it is manageable. it helps to have version control and have everything committed before starting this way you know what changed. what exactly wasnt working? any

Re: What code to put for using the CakeDC search plugin?

2011-12-14 Thread euromark
everything else would have made me wonder :) On 14 Dez., 00:51, Daniel danwgr...@gmail.com wrote: OK, forget it, I got a basic search up and running now. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Auth password hash

2011-12-14 Thread euromark
remember: you should also always mentioned the cake version you are using. On 14 Dez., 11:40, AD7six andydawso...@gmail.com wrote: On Dec 13, 12:10 pm, Miqdad Ali mr.miqdad@gmail.com wrote: Hi All, I have started with Auth class AppController extends Controller {     var

Re: Cakephp 1.3 or 2.0, what should I use

2011-12-14 Thread euromark
Paypal_IPN and many others already exist for 2.0 or can easily be upgraded yourself. so no worries here. On 14 Dez., 19:52, Justin Edwards justinledwa...@gmail.com wrote: Denis, If your needs are that basic, I would stay with 2.0.   If you needed to leverage a lot of existing plugins and

Re: Trouble upgrading from 1.3.4 to 2.0.4

2011-12-14 Thread euromark
yes unfortunately, the official upgrade shell still lacks quite a lot of basic stuff I would recommend the one I used to upgrade a bunch of large projects in less than days. https://github.com/dereuromark/upgrade On 14 Dez., 19:15, McScreech scre...@sympatico.ca wrote: Win XP SP3 Apache 2.2.16

Re: Cake v2 how to parse a xml file?

2011-12-13 Thread euromark
its actually App::uses('Xml', 'Utility'); (which can be found out looking into the core files) its also mentioned here: http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html and did you try to read the book?

Re: Using Cake w/ url extensions

2011-12-12 Thread euromark
you should have a subfolder /xml/ then: /View/controller/xml/view.ctp I just recently had to work with pdf as extension: http://www.dereuromark.de/2011/11/21/serving-views-as-files-in-cake2/ On 12 Dez., 03:58, Deryck ddden...@gmail.com wrote: I am using CakePHP 2.0 (I believe it is v2.0.3.)

Re: Best practice output a Dynamic menu

2011-12-12 Thread euromark
such components may get their data automatically that's what some are for, after all :) even a helper may use data passed down form the controller/component automatically. at least in 2.0 - with $_View being officially available now. On 12 Dez., 12:08, MetZ met...@gmail.com wrote: ;) That

Today

2011-12-12 Thread euromark
You could have made a little bit more advertising for the event tonight (or was this intential?^^): http://pages.engineyard.com/FutureofPHPCakePHP.html Just saw the event info myself a few hours ago by accident and was wondering why I never heard of it before yet. Anyway, I will be joining in

Re: How to use AUTH on posts, but not on any other controllers/actions?

2011-12-12 Thread euromark
here you go http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html?highlight=allow#making-actions-public and for 1.3: http://book.cakephp.org/view/1257/allow (it display where to put it more clearly) On 12 Dez., 13:20, heohni heidi.anselstet...@consultingteam.de wrote:

Re: form autopopulation

2011-12-12 Thread euromark
the usual recommendation: you should use the bake script to bake your code: cake bake ... from the console. this way you save time and learn a lot more than doing it the hacky way yourself (besides the fact that it should prevent you from writing unsafe/ faulty code) On 12 Dez., 15:42, Tilen

Re: Fixture with 'Double' Datatype

2011-12-12 Thread euromark
as far as I know cake handles all non-integer numeric types as float internally same with decimal - unfortunately :) On 12 Dez., 17:08, flosky flo.kl...@googlemail.com wrote: Hi everyone, I have a database table row with the datatype 'double'. When I create the Fixture with cake bake it sets

Re: Today

2011-12-12 Thread euromark
same with me mark mocked me^^ he told me I was the only one - although in fact there where 24 others ;) tztz The software only shows yourself as attendee. create a false impression. anyway, just been kicked out. I guess the software went down^^ On 12 Dez., 23:46, phpMagpie p...@webbedit.co.uk

Re: Extend ControllerTestCase

2011-12-11 Thread euromark
I place mine in the Lib folder either plugin (cross app) or app Lib folder. in 2.0 you can On 11 Dez., 11:30, Matteo Landi mat...@matteolandi.net wrote: Hi, where is the right place to put a class which extends and add some functionalities to ControllerTestCase so that I can it inside all my

Re: Extend ControllerTestCase

2011-12-11 Thread euromark
also create a package name for it (e.g. Test) App::uses('My...', 'Test'); App::uses('My...', 'PluginName.Test'); On 11 Dez., 11:52, euromark dereurom...@googlemail.com wrote: I place mine in the Lib folder either plugin (cross app) or app Lib folder. in 2.0 you can On 11 Dez., 11:30

Re: Upgrade Shell 2.0 clarification on docs

2011-12-10 Thread euromark
the upgrade shell does what its name says :) it tries to upgrade you existing code (first moving files, then changing the content as necessary). so a) drop in the new core in trunk/lib/Cake b) enable the plugin etc in bootstrap with CakePlugin::loadAll() c) start the console at /trunk/app d) run

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