Re: is Cakephp 2.2.1 slow?

2012-08-25 Thread WyriHaximus
In my experience 2.x is a lot faster then 1.x, due to several core 
improvements (dropping PHP4 support, dynamic loading of 
components/helpers/models). Also make sure to check this post out by mark:  
http://www.dereuromark.de/2012/02/13/what-really-speeds-up-your-cakephp-app/
 

On Friday, August 24, 2012 10:45:50 AM UTC+2, dawid koniecki wrote:
>
> Hello 
>
> I'm just looking for my first php framework and i've found cakephp 
> interesting.
> however I started to look in the internet and i've found many pages where 
> there are some performance issues described with cakephp.
> mostly they are connected with previous versions of cakephp.
> but some of them are about new version like for example: 
> http://blog.kamisama.me/2012/02/17/cakephp-reverse-routing-is-slow-and-what-you-can-do/
> I started to work with cakephp last 2 days and i realy like this framework 
> but i'm a bit concerned about these speed issues.
> i don't want to stuck on these kind of issues in the future or i don't 
> want to do any "hacks" to the core files to speed up framework etc.
> so my question is , do we still have these performance/speed issues in 
> cake2.2.1 and, if yes,  on what situations?
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: PHP Code in Database

2012-08-11 Thread WyriHaximus
Us mark says eval can be very dangerous and should be avoided at all costs 
especially in combination with userinput. For my database based page that 
require more then just html/css/js I use Twig  to 
add dynamic possibilities without exposing more then required. (I also use 
it for view files tbh.)

On Friday, August 10, 2012 7:03:48 PM UTC+2, euromark wrote:
>
> 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 . " to make it work in all cases
>
> the reason you need this is that you have HTML in it and php is only 
> embedded there as 
>
>
>
> Am Freitag, 10. August 2012 18:24:23 UTC+2 schrieb sanjeev:
>>
>> Thanks Tilen,
>>
>> This following code works
>> $content = $this->fetch('content');
>> echo eval('?>'.$content);
>>
>> can you explain why i need to prefix ?> berfore $content?
>>
>> On Fri, Aug 10, 2012 at 3:43 PM, Tilen Majerle wrote:
>>
>>> ok, i understand...
>>> allow user to write some idk, php code, save it in database and than use 
>>> php's eval.
>>>
>>> http://si2.php.net/manual/en/function.eval.php 
>>>
>>> eval will execute code :)
>>> --
>>> Lep pozdrav, Tilen Majerle
>>> http://majerle.eu
>>>
>>>
>>>
>>> 2012/8/10 Sanjeev Divekar 
>>>
 No it's not cache. I want to execute user defined PHP code in my view.


 On Fri, Aug 10, 2012 at 2:31 PM, Tilen Majerle wrote:

> it sound's like you cache some view. Why you don't just use Cache by 
> cakephp ?
> http://book.cakephp.org/2.0/en/core-libraries/caching.html 
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
>
>
>
> 2012/8/10 sanjeev 
>
>> Hello,
>>
>> I am developing CMS which need to execute some php code e.g. > echo $this->element('helpbox'); ?> which is stored in database.
>>
>> I tried 
>> file_put_contents ('tempfile.tmp',$this->fetch('content'));
>> include('tempfile.tmp');
>> in layout which works
>>
>> but any better Idea?
>>
>> Regards,
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google 
>> Groups "CakePHP" group.
>> To post to this group, send email to cake...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> cake-php+u...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>  
>>  
>>
>
>  -- 
> You received this message because you are subscribed to the Google 
> Groups "CakePHP" group.
> To post to this group, send email to cake...@googlegroups.com.
> To unsubscribe from this group, send email to 
> cake-php+u...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>  
>  
>



 -- 
 Warm Regards,
 Sanjeev
 http://sanjeevdivekar.wordpress.com

  -- 
 You received this message because you are subscribed to the Google 
 Groups "CakePHP" group.
 To post to this group, send email to cake...@googlegroups.com.
 To unsubscribe from this group, send email to 
 cake-php+u...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
  
  

>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CakePHP" group.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> cake-php+u...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>>  
>>>  
>>>
>>
>>
>>
>> -- 
>> Warm Regards,
>> Sanjeev
>> http://sanjeevdivekar.wordpress.com
>>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: [2.1] Problem with webservices

2012-07-29 Thread WyriHaximus
Why would do you that when you can make the JsonView take care of that:

$this->set(array(
'people' => $people,
'_serialize' => array('people')
)); 

On Sunday, July 29, 2012 9:41:24 PM UTC+2, Walter Raponi wrote:
>
> $this->set(array(
> 'people' => $people,
> '_serialize' => array('person')
> ));
>
> Do we need serialize?? 
>
> Just try $this->set('person', $people);
>
> And in view 
> Echo json_encode($person);
>
>
>
> =
> *Walter Raponi*
> Din S.r.l.
> Via Donato Menichella 304
> 00156 Roma - Italy
>
> Tel  0641227662
> Fax 0641227664
> w.rap...@ritoll.it
>
> Il giorno 29/lug/2012, alle ore 19:01, "Mariano C." <
> mariano.calan...@gmail.com> ha scritto:
>
> Yes I've read that message, but I don't understand what it means. Why I 
> get that error only in json and xml output and not in a normal view?
>
>
> Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto:
>>
>>
>>
>> On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote:
>>>
>>> Nothing change, I got the same error. :(
>>>
>>>
>> Read the error message:
>>
>> Notice (8): Undefined index: person 
>> [CORE\Cake\View\JsonView.php, line 89 
>>
>  -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>  
>  
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> at http://groups.google.com/group/cake-php
>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Be Aware of Pirated Copy of CakePhp 2.x User Management Plugin

2012-07-28 Thread WyriHaximus
Tbh this is just the eagle plugin under another name from what I can see so 
far, and you can download the source this time.

On Saturday, July 28, 2012 3:17:47 AM UTC+2, euromark wrote:
>
> 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 I would like to share it with you all because I found some *pirated 
>> sites* which are selling this plugin. I believe, the real developer of 
>> the plugin should get the appreciation and profits  for his plugin.. Don’t 
>> you feel that ???
>>
>> The original website is http://umpremium.ektasoftwares.com. Go through 
>> this website once, you will feel that this is the actual website. On this 
>> site, you can see *Google Ads* , it means Google has validated this site 
>> so it is neither fake nor pirated, it is original site. Even the developer 
>> of the plugin  has mentioned his contact details (Email id, Phone no etc)  
>> and he is available for 24x7 to help you if you have any issue regarding 
>> this plugin. I have purchaged this plugin from this site and I really 
>> appreciate the developer and I am really happy with 24x7 support.  I really 
>> love his way to solve my problems on time. 
>>
>> You can get the User Management Plugin Version 1.0 for free on 
>> http://usermgmt.ektasoftwares.com/ and User Management Plugin Version 
>> 2.0 for a very low cost on 
>> http://www.ektasoftwares.com/products
>> .
>>
>>
>> Please guys be aware of pirated copy of the CakePhp 2.x User Management 
>> Plugin and purchase the original plugin from original website.
>>
>> Thanks,
>>
>> Ivan
>>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Getting CakePhp to talk to Android devices

2012-07-26 Thread WyriHaximus
Take a look the Xml/Json view coming with 2.1  
http://book.cakephp.org/2.0/en/views/json-and-xml-views.html  but never 
ever let it talk to mysql directly ..

On Thursday, July 26, 2012 12:31:16 PM UTC+2, Lightee wrote:
>
> Dear CakePHP experts,
>
> I am thinking of creating an Android app to talk to CakePHP server app. 
> Sorry for my amateur questions because I am still a newbie. Is there 
> anything extra I need to do on the CakePHP side? Are web services the way 
> to go? Can the Android talk to MySql database directly and pull out data?
>
> Thank you.
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CSS / JS Compression

2012-07-15 Thread WyriHaximus
I've to agree with this. At first I wasn't to shabby about it (mainly 
having all asset configuration in 1 place, that's why I hacked in support 
for plugin ini files) but once I started working with it, it made a whole 
lot of things (combining assets and compressing them with YUI on deployment 
via Jenkins) easier and less time consuming. So more time to develop 
awesome features :).

On Sunday, July 15, 2012 3:00:11 PM UTC+2, mark_story wrote:
>
> I've found overtime that having explicit build files makes life much 
> easier in the long run.  AssetCompress does have support for anonymous 
> builds as well
>
> https://github.com/markstory/asset_compress/wiki/Helper-usage
>
> -Mark
>
> On Saturday, 14 July 2012 21:30:59 UTC-4, advantage+ wrote:
>>
>> Hello Mark, 
>>
>>  
>>
>> I did see the one you wrote but having to define the specific sets of 
>> different css / js files did not seem like the option I was looking for in 
>> a separate ini file. I want to be able to say ok let me try using 
>> colorbox.js or lightbox.js and add that directly in the view rather than 
>> define different sets of js / css in a remote file.
>>
>>  
>>
>> *From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On 
>> Behalf Of *mark_story
>> *Sent:* Saturday, July 14, 2012 10:58 PM
>> *To:* cake-php@googlegroups.com
>> *Subject:* Re: CSS / JS Compression
>>
>>  
>>
>> I wrote one, its on github.
>>
>>  
>>
>> http://github.com/markstory/asset_compress.
>>
>>  
>>
>> It affords the ability to concatenate and minify files. It also allows 
>> you to integrate preprocessors like less, sass and coffee-script into your 
>> projects.
>>
>>  
>>
>> -Mark
>>
>> On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote:
>>
>> I know in older versions of cake there were many compression / combine 
>> plugins that would take the defined css /js for the view and compress / 
>> combine / minimize so you ended up with 1 js and 1 css file. Is there 
>> anything like that for 2.x?
>>
>>  
>>
>> I liked the way I defined what I needed in each view specifically….
>>
>>  
>>
>> I had used Compressor plugin. And in the view simply dropped in
>>
>>  
>>
>> Compressor->add_libs( 'js', array('jquery.form', 
>> 'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?>
>>
>>  
>>
>> Anyone fine anything similar?
>>
>>  
>>
>> Thanks all.
>>
>> -- 
>> Our newest site for the community: CakePHP Video Tutorials 
>> http://tv.cakephp.org 
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
>> others with their CakePHP related questions.
>>  
>>  
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> at http://groups.google.com/group/cake-php
>>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: 3.0: a peek into CakePHP's future

2012-07-09 Thread WyriHaximus
http://php.net/manual/en/class.serializable.php :).

On Tuesday, July 10, 2012 3:57:20 AM UTC+2, madi wrote:
>
> Wouldn't array be still used? For instance more than one objects are 
> passed, should the objects be stored in an array? What would happen to the 
> auto conversion to json? Array is easier to convert to json rite? 
> On Jul 10, 2012 1:19 AM, "Jamescowhen"  wrote:
>
>> I would think moving to a more object oriented model will result in 
>> better readable code and IDE auto completion will be more useful. 
>>
>> On Sunday, July 8, 2012 7:12:32 PM UTC-7, Greg wrote:
>>>
>>> For mine, being able to deal with objects in the view would greatly 
>>> improve the readability of data (the whole $user['User']['email'] etc looks 
>>> incredibly difficult to read to me, compared with $user->email which would 
>>> be much nicer).
>>>
>>> I've always felt dealing with arrays is a bit of a 'hack'. I understand 
>>> the choice, but I think the idea to move towards a more object oriented 
>>> approach is more than hype, and long overdue.
>>>
>>>
>>> On Sat, Jul 7, 2012 at 7:35 PM, tigr  wrote:
>>>
 No, that is not "nice". The strength of the CakePHP design is in being 
 very straightforward when it comes to working with the data. I have seen 
 other frameworks and I think that object-oriented ways are not suitable 
 for 
 working with data. Well, of course, you can, but would you want to, given 
 a 
 choice? My answer was "no" and that is why I am using Cake. I am worried 
 that the object-oriented hype will get the best of you and we will lose a 
 perfectly sensible data processing framework to the object-oriented glory. 
 For practical reasons, it would be great to leave the model layer 
 principles as they are.

  -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and 
 help others with their CakePHP related questions.
  
  
 To unsubscribe from this group, send email to
 cake-php+unsubscribe@**googlegroups.comFor
  more options, visit this group at 
 http://groups.google.com/**group/cake-php

>>>
>>>  -- 
>> Our newest site for the community: CakePHP Video Tutorials 
>> http://tv.cakephp.org 
>> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
>> others with their CakePHP related questions.
>>  
>>  
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> at http://groups.google.com/group/cake-php
>>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Fatal Error: Class 'String' not found in Model

2012-05-05 Thread WyriHaximus
Hey I've encountered the same bug on a different place tho. Are you by any 
change running with E_STRICT error logging on? Cause going from E_ALL | 
E_STRICT to just E_ALL 'solved' the problem. (Had this on both windows and 
linux.)

On Thursday, May 3, 2012 2:21:16 AM UTC+2, Conor Manning wrote:
>
> I have a web application that has been working fine until recently when I 
> switched operating systems. I migrated from Ubuntu to Arch Linux, backing 
> up my application online. In the process I lost some directories and my web 
> application no longer worked.
>
> To solve this, I downloaded CakePHP again, copied the Controllers, Models 
> and Views from my old project into my new copy of Cake, and modified my 
> config to reflect my database.
>
> I'm using Cake's AuthComponent and I'm getting this strange error message:
>
>> Fatal error: Class 'String' not found in /srv/http/bfm/app/Model/User.php on 
>> line 39
>
>
> I didn't know what to make of the line number because line 39 is the last 
> line in the file. I'm not particularly experienced with PHP outside of Cake 
> so perhaps somebody else will be able to tell me what that might mean.
>
> Each User has many Podcasts, and each Podcast belongs to a User. It was in 
> accessing any page which used find to retrieve Podcasts and associated User 
> objects that the error occurred.
>
> Stranger still, actions managed by the UsersController worked fine. I was 
> able to access my user login page with no problems, and I was redirected to 
> login when I tried to create a new user, which is consistent with my Auth 
> settings.
>
> In any case, I decided to track down the cause of this error. I commented 
> out my validation code and my beforeSave method, which used 
> AuthComponent::password to hash and salt my users' passwords. Once I did 
> this, the error vanished. With some further clumsy debugging through 
> commenting, I figured out that it was specifically the beforeSave method 
> that was causing problems. 
> I tried following the trail of functions called from beforeSave, through 
> AuthComponent and Security. Both of those files had App::uses('String', 
> 'Utility') in them. What's more, I tried adding that line to User.php, and 
> it didn't help solve the problem either.
> My beforeSave method looks like this:
>
> public beforeSave() {
> if (isset($this->data[$this->alias]['password']) {
> $password = $this->data[$this->alias]['password'];
> $this->data[$this->alias]['password'] = AuthComponent::password($password);
> }
> return true;
> }
>
> When I replaced AuthComponent::password($password) with $password, the 
> error was still there, which confused me, because I was sure String was 
> needed for AuthComponent::password (via Security), and that was what was 
> causing the trouble.
>
> Maybe this was too long, but I wanted to give all the information I had, 
> because I am well and truly stuck. I have no idea what's happening inside 
> my code.
> I can provide more information or code if it's useful. I just don't know 
> where to begin.
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to send Email in Cakephp

2011-09-14 Thread WyriHaximus
For 1.3: http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP
For 2.0: http://book2.cakephp.org/en/core-utility-libraries/email.html

Both include gmail examples :).

On Sep 14, 6:41 pm, tubiz  wrote:
> Please I have a register action in my user controller how do i send a
> mail to a user after he has successfully registered and his details
> has been stored in the database.
>
> I would like to use  Google SMTP to send the mail.
>
> How do I also send a mail to all registered users as well.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: AppModel when migrating to cake2.0

2011-09-07 Thread WyriHaximus
What I found out about the AppController.php is that it's now placed
in /app/Controller/ instead of /app/ in 1.x so maybe your AppModel.php
has to go into /app/Model/ instead of /app/. Just a guess.

On Sep 7, 6:43 pm, luca capra  wrote:
> Hi all,
> I'm migrating an application from 1.3.6 to cakephp 2.0-rc1.
> Everithing is working well, great work!
>
> I'm tryng to get back some generic methods with no success:
>
> /MyAppModel.php/
> App::uses('Model', 'Model');
> class MyAppModel extends Model {}
>
> /AppModel.php/
> App::uses('Model', 'MyAppModel');
> class AppModel extends MyAppModel {}
>
> How should it be done?
>
> Thanks in advance
> Luca

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Nginx cache in cakephp app

2011-09-07 Thread WyriHaximus
Have you looked into html_cache by Matt Curry? 
https://github.com/mcurry/html_cache

On Sep 7, 4:42 pm, Eugenio  wrote:
> Hi to everyone, i have a nginx question... the app is written in cakephp,
> maybe you could help me.
>
> Right now im working on a heavy app written in php.
>
> The app knows what pages to cache a cron job delete the old cache pages, the
> cache is saved doing a md5 to the url to get a hash, then puts a / every 2
> chars, example;
>
> /posts/index
> hash: d1546d731a9f30cc80127d57142a482b
> cache file: /d1/54/6d/73/1a/9f/30/cc/80/12/7d/57/14/2a/48/2b/index.html
>
> The php script check if exist a cache file, if cache file exist render.
>
> The question is, is anyway to do this with nginx??
>
> Thanks for your time

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 1.3 loading page is slow

2011-07-27 Thread WyriHaximus
Tbh it's worth the time to find out why a simple static page is
extremely slow rather then just wack the html_cache plugin in the
mix ;). A slow static page probably means the entire cake app is slow.

On Jul 28, 3:25 am, Eugenio  wrote:
> Try with the html cache 
> plugin;http://bakery.cakephp.org/articles/mattc/2009/03/20/html-cache-helper
>
> It will really speed it up, just be careful and remember to clean cache
> after updates.
>
> 2011/7/27 leafchild 
>
>
>
>
>
>
>
> > I notice loading page is extremely slow.
>
> > Those pages are not connected to DB. Just simple static page.
> > How can I make it faster to load these pages?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.0 Stable

2011-03-15 Thread WyriHaximus
Is there any ETA for the first alpha?

On Mar 15, 3:00 am, mark_story  wrote:
> More. Our normal release process includes an alpha, beta, and usually
> at least 3 RC releases.  None of these have happened yet.  And they
> will not all transpire in one month.
>
> -Mark
>
> On Mar 14, 5:18 pm, "MaJerle.Eu"  wrote:
>
>
>
>
>
>
>
> > Hello more like to admins...
>
> > So, when can we expect a stable release of CakePHP 2.0.0 ?...
> > Maybe for about one month or more?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: App:import not working on hosting providers

2011-01-15 Thread WyriHaximus
Aye every time you push an update to a site, for your own sanity and
your users user experience clear your cache.

On Jan 15, 3:48 pm, euromark  wrote:
> you need to clear your cache
> then it will find it again :)
>
> On 15 Jan., 08:56, roman_coder  wrote:
>
>
>
>
>
>
>
> > I'm working on Cakephp 1.3.6 and leveraging JonBradley's S3 plugin
> > (https://github.com/jonbradley/CakePHP-S3-Upload).  It works great on
> > my local dev box but once I put it on a hosting provider I get the
> > class not found error.  I've tried both Joyent (old TextDrive & 1and1)
> > & got the same error.
>
> > Fatal error: Class 'S3' not found in /homepages/6/d271502791/htdocs/
> > demo/app/plugins/upload/controllers/components/upload.php on line 26
>
> > The import for the S3 class is here: -upload.php on line 26.
>
> > App::import('Vendor', 'Upload.S3');
>
> > I've even tried the below and got the same error:
>
> > App::import('Vendor', 'Upload.S3', array('file'=>'/demo/app/plugins/
> > upload/vendors/S3/S3.php'));
>
> > Anyone have any ideas why it's not finding this class?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: how to execute this query with cakephp

2010-01-18 Thread WyriHaximus
Afaik not thats why I wrote this function for in my appModel a while
ago: http://bin.cakephp.org/view/429049354

On Jan 18, 2:52 am, Saleh Souzanchi  wrote:
> Is there another way?
>
> On Jan 18, 4:46 am, Jon Bennett  wrote:
>
> > > how to execute this query with cakephp :
>
> > > update table_name set hit = hit+1
>
> > $this->Table->query('update table set hit = hit+1);
>
> > j
>
> > --
> > jon bennett -www.jben.net-blog.jben.net
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: save sensitive information

2009-11-03 Thread WyriHaximus

Personally I handle such information as I would like my own
information to be handled and that's secure as possible even for a
small site/company etc etc. It's still personal information that in
the wrong hands can do way to much damage.

On Nov 3, 4:54 pm, "euromark (munich)" 
wrote:
> yeah
> i found 2 behaviours later on by searching with other filters
>
> but one question remains
> how important would that be for a simple online shop?
>
> On 3 Nov., 12:45, WyriHaximus  wrote:
>
> > Did you take a look at this piece of 
> > code?http://bakery.cakephp.org/articles/view/cryptable-behavior
>
> > On Nov 3, 10:30 am, "euromark (munich)" 
> > wrote:
>
> > > i was wondering how to save sensitive information of users
> > > like cc number or bank data?
> > > my guess is they should not be saved as plain "chars" but encrypted in
> > > such a way that if the db is ever going to be hacked the retrieved
> > > data would be useless to anyone without the correct "key"
>
> > > passwords usually are stored sha1-hashed as you dont intend to revert
> > > that (and cant)
> > > but with the above examples you need to
>
> > > is there some kind of behaviour to automatically cipher and save or
> > > decrypt and read record data?
> > > i stumpled uopn Security::cipher() for that matter
>
> > > and how save would that be?
> > > could you re-build the original string from a given ciphered one with
> > > a modern computer? or would it be pointless for "everyday hackers"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: save sensitive information

2009-11-03 Thread WyriHaximus

Did you take a look at this piece of code?
http://bakery.cakephp.org/articles/view/cryptable-behavior

On Nov 3, 10:30 am, "euromark (munich)" 
wrote:
> i was wondering how to save sensitive information of users
> like cc number or bank data?
> my guess is they should not be saved as plain "chars" but encrypted in
> such a way that if the db is ever going to be hacked the retrieved
> data would be useless to anyone without the correct "key"
>
> passwords usually are stored sha1-hashed as you dont intend to revert
> that (and cant)
> but with the above examples you need to
>
> is there some kind of behaviour to automatically cipher and save or
> decrypt and read record data?
> i stumpled uopn Security::cipher() for that matter
>
> and how save would that be?
> could you re-build the original string from a given ciphered one with
> a modern computer? or would it be pointless for "everyday hackers"?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Pizza Online Order Notification?

2009-09-16 Thread WyriHaximus

Another way would be sending a fax but I suppose that takes more time
to setup and can go wrong easier then having a page open that
automatically refreshes or sending an email. So yes your right. The
only thing I would remove is the Ip restriction cause in case their IP
changes the site has to be updated and those things can take longer
then the wanted (taken from the moment they find out till the moment
you changed it).

On Sep 16, 2:54 am, TimG  wrote:
> Hey,
> I am developing a website for a local delivery place that will feature
> online ordering. I am competent enough to build the ordering part of
> the site but I did have one question for more developed programmers:
>
> I need a way for the restaurant to know immediately when someone
> places an order. The only way I figured how to do it (other than
> email) was to have a login that doesn't timeout, is only usable from
> the restaurants IP address and displays the placed orders page. There
> would need to be a JS on that page that automatically refreshes the
> page every few minutes. That way it would see any new orders when the
> page reloads.
>
> That's what I came up with - is there a better way to do it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread WyriHaximus

PHP4 support
Not able to delete entire namespace from cache
1.2 seems a bit slow from time to time compared 1.1
More documentation on more advanced things would be nice

On May 8, 12:29 am, Nate  wrote:
> Well, maybe hate's a strong word.  Let's say, what do you like the
> least?  Kind of an odd question, I know, but since we've kick-started
> development of a new version, I'd like to know what the most
> frustrating things with the framework are, even if they're things we
> can't fix right away.
>
> I'll get us started: PHP 4 support.
>
> Who's next? TIA for the input.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: What hosting service do you use?

2009-04-15 Thread WyriHaximus

My sites are hosted at http://sensson.net/

On Apr 15, 4:15 pm, Jon Bennett  wrote:
> I use SliceHost
>
> https://manage.slicehost.com/customers/new?referrer=72080a7f7a6ddeeda...
>
> Cheers,
>
> Jon
>
> 2009/4/15 Jonathon Musters :
>
>
>
>
>
> > I use wet-host.com
>
> > smaller more personal service there i found... very happy
>
> > On Tue, Apr 14, 2009 at 5:42 PM, Miles J  wrote:
>
> >> I use Dreamhost and MT.
>
> >> Both work well but the MT DV server took a lot of configuration to get
> >> cake working.
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance different between cakephp 1.1 and 1.2

2009-03-19 Thread WyriHaximus

Hehe that shouldn't be a problem at all :). Those errors your getting,
are you getting them on the production server 2?

On Mar 19, 5:36 am, namsouth  wrote:
> Indeed my table relationship is quite simple just a list of products
> belong to different product cat ( product_cats table has many
> products) , so I don't think it would cause  the problem. but thanks
> for your advice .
>
> I think I should try to eliminate all the error message found in the
> debug tools, and try again .
>
> On 3月18日, 下午5時16分, WyriHaximus  wrote:
>
> > Just curious how many queries/models/reccords/relations are we talking
> > about? For example does it run the same query more then once or is it
> > looping alot? Did you look athttp://book.cakephp.org/view/474/Containable
> > to cut down on your database queries?
>
> > On Mar 18, 3:32 am, namsouth  wrote:
>
> > > it is just the localhost with apache, mysql, and php5,
> > > each query is just cost about 20ms,
> > > also I have greater problem when put my web into a web hosting, the
> > > loading speed is very slow , sometime it would take about 20s to load
> > > a page
> > > as I have been set the debug mode to 0 on production server and trun
> > > off the firewall server but I also still need to take about 6s to load
> > > a page.
>
> > > I just have no idea how would I improve theperformanceof the web,
>
> > > this problem related to the model or any others things ??
>
> > > On 3月16日, 下午5時01分, Miles J  wrote:
>
> > > > It seems all your views are loading rather quickly, how long on
> > > > average do your sql queries take?
>
> > > > Also is this a local host or online server?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance different between cakephp 1.1 and 1.2

2009-03-18 Thread WyriHaximus

Just curious how many queries/models/reccords/relations are we talking
about? For example does it run the same query more then once or is it
looping alot? Did you look at http://book.cakephp.org/view/474/Containable
to cut down on your database queries?

On Mar 18, 3:32 am, namsouth  wrote:
> it is just the localhost with apache, mysql, and php5,
> each query is just cost about 20ms,
> also I have greater problem when put my web into a web hosting, the
> loading speed is very slow , sometime it would take about 20s to load
> a page
> as I have been set the debug mode to 0 on production server and trun
> off the firewall server but I also still need to take about 6s to load
> a page.
>
> I just have no idea how would I improve the performance of the web,
>
> this problem related to the model or any others things ??
>
> On 3月16日, 下午5時01分, Miles J  wrote:
>
> > It seems all your views are loading rather quickly, how long on
> > average do your sql queries take?
>
> > Also is this a local host or online server?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Performance different between cakephp 1.1 and 1.2

2009-03-16 Thread WyriHaximus

Just curious how did you create that report?

On Mar 16, 4:49 am, namsouth  wrote:
> Miles,
>Thank for you advice, as your advice, I have been installed the
> debug tools, try to find out which process cause the generate time is
> so slow,
> but I just cannot identify which module cause this problem ,   since
> from the timer session time used in render the element is so little,
> can you give me an suggestion which part of the report I need to focus
> on ?
>really thanks for your advice.
>
>  * cakePHP
> * Session
>   Session
>   o Config
> + userAgent
> + time1237714705
> + rand731973688
> + timeout10
>   o targeturlproducts_cats/showDetail/1
> * Request
>   Request
>   Cake Params
>   o pass
> + 01
>   o named(empty)
>   o controllerproducts_cats
>   o actionshowDetail
>   o plugin(null)
>   o form(empty)
>   o url
> + urlproducts_cats/showDetail/1
>   o isAjax(false)
>   $_GET
>   o urlproducts_cats/showDetail/1
>   Cookie
>
>   To view Cookies, add CookieComponent to Controller
>   Current Route
>   o 0/:controller/:action/*
>   o 1#^(?:/([^\/]+))?(?:/([^\/]+))?(?:/(.*))?[\/]*$#
>   o 2
> + 0controller
> + 1action
>   o 3
> + plugin(null)
> + controller(null)
> + actionindex
>   o 4(empty)
> * Sql Log
>   Sql Logs
>   default
>   (default) 0 query took ms Nr  Query   Error   AffectedNum. 
> rows   Took
> (ms)
> * Timer
>   Timers
>
>   Total Request Time: 5.431110 (seconds)
>   Message   time in seconds
>   Component initialization and startup  0.151990
>   Controller Action 0.252230
>   Render Controller Action  0.236420
>   Rendering View0.133010
>   Rendering APP\views\products_cats\show_detail.ctp 0.129450
>   Rendering APP\views\elements\main_header.ctp  0.016530
>   Rendering APP\views\elements\navigation.ctp   0.010920
>   Rendering APP\views\elements\breadcrumb.ctp   0.001250
>   Rendering APP\views\elements\section_header.ctp   0.002200
>   Rendering APP\views\elements\left_col.ctp 0.001660
>   Rendering APP\views\elements\right_col_detail_product.ctp
> 0.002130
>   Rendering APP\views\elements\footer.ctp   0.000450
>   Rendering APP\views\layouts\blank.ctp 0.001770
> * Log
>   Logs
>   error.log
>   Time  Message
>   2009-04-12 09:15:46   Warning: Warning (2): unlink(E:\AppServ\www
> \project\workspace\jkchem\app\tmp\cache\persistent
> \cake_core_core_paths) [function.unlink]: Permission denied in [CORE
> \cake\libs\file.php, line 279]
>   2009-04-12 09:15:46   Warning: Warning (2): unlink(E:\AppServ\www
> \project\workspace\jkchem\app\tmp\cache\persistent
> \cake_core_core_paths) [function.unlink]: Permission denied in [CORE
> \cake\libs\file.php, line 279]
>   2009-04-12 09:24:12   Warning: Warning (2): unlink(E:\AppServ\www
> \project\workspace\jkchem\app\tmp\cache\models
> \cake_model_default_jk_chem_list) [function.unlink]: Permission denied
> in [CORE\cake\libs\file.php, line 279]
>   2009-04-12 09:24:12   Warning: Warning (2): unlink(E:\AppServ\www
> \project\workspace\jkchem\app\tmp\cache\models
> \cake_model_default_jk_chem_list) [function.unlink]: Permission denied
> in [CORE\cake\libs\file.php, line 279]
>   2009-04-12 09:25:07   Warning: Warning (2): unlink(E:\AppServ\www
> \project\workspace\jkchem\app\tmp\cache\persistent
> \cake_core_core_paths) [function.unlink]: Permission denied in [CORE
> \cake\libs\file.php, line 279]
>   debug.log
>   Time  Message
>   2009-04-12 09:25:16   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-04-12 09:25:17   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-04-12 09:25:17   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-04-12 09:25:24   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-04-12 09:25:25   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-04-12 09:25:26   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-04-12 09:25:26   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
>   2009-03-16 03:38:23   Debug: Notice (8): Undefined variable:
> title in [APP\views\elements\breadcrumb.ctp, line 27]
> * Memory
>   Memory
>
>   Current Memor

Re: search engine bots and sessions

2009-03-13 Thread WyriHaximus

Most search engine bots/crawlers don't store cookies when they are
crawling your site. A way to solve this is creating a list with known
bots and their useragent strings. If a visitor visits your site check
if it's a bot or not and if so look in your sessions table if it has
been here before so you can reuse that session. Bare in mind that this
solves the problem for most bots, however there are spam bots that act
the same and are harder to track since they tend to use 'normal'
browser useragent strings.

On Mar 13, 9:35 am, wowfka  wrote:
> Hi,
>
>   Have little prob with search engine bots :) I am storing sessions in
> database and also track visitors in site, with records from that
> database, recently i saw multiple records with same IP adress tracked
> it, and found that it is search engine bots, google,yahoo, etc there
> was many records with same ip each url generates seperate session id.
> It should behave so? each bot acess to url create new session id?
> Maybe i missing something.
>Another question is it good solution to track users from cake
> session database? I can create another database and store there
> visiting users information, but don't want to create unnecessary-
> dublicate code.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: What do you develop in (ide, text editor, etc.)?

2009-03-02 Thread WyriHaximus

Using jEdit atm untill I can svn2web working switching to Eclipse PDT
then.

On Mar 2, 12:37 am, danfreak  wrote:
> I used Zend Studio, then Aptana at work, but I'm now sticking with
> TextMate ;o)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Solution for "who is online"

2009-01-07 Thread WyriHaximus

Hey Anja,

Thanks for sharing. For the session data parsing you might wanne check
this page out: 
http://www.mail-archive.com/cake-php@googlegroups.com/msg40110.html

This certainly has the possibility to become a great bakery
article :).

Cees-Jan

On Jan 7, 2:00 pm, "Liebermann, Anja Carolin"
 wrote:
> Hi everybody,
>
> Someone asked for a solution to show who is online 1-2 weeks ago. I just
> solved it for me and thought I share it with you:
>
> 1. change session handling from whatever to 'database' 
> following:http://book.cakephp.org/view/44/CakePHP-Core-Configuration-Variables
> 2. Login and check if your database table is populated.
> 3. write a function to get the data. I placed it in the users-controller
> since it is about user information:
>
>         function whoisonline(){
>
>                 $sessiondata = $this->User->query('SELECT `data` FROM
> `cake_sessions`');
>                 //pr($sessiondata);
>                 foreach($sessiondata as $sess){
>                         $sessdata =
> preg_replace('/[0-9]{1,3}:/','',$sess['cake_sessions']['data']);
>                         $sessarray = explode(';s:',$sessdata);
>
>                         //pr($sessarray);
>
>                         foreach ($sessarray as $key =>$wert){
>                                 if ($wert == '"name"') {
>                                         break;
>                                 }
>                         }
>                         $key++;
>                         $name = $sessarray[$key];
>
>                         $name = preg_replace('/"/','',$name);
>                         $onlineusers[]=$name;
>                 }
>                 //pr($onlineuser);
>                 $this->set('onlineusers',$onlineusers);
>                 return $onlineusers;
>         }
>
> The 'pr's are for debugging, you can uncomment them and see what values
> you get. This function gets the session data and extracts the username
> from it.
>
> 4. Create an element /views/elements/whoisonline.ctp to fetch the data:
>
>  $onlineusers = $this->requestAction('users/whoisonline/');
> $everybodyhere = implode(', ',$onlineusers);
> echo $everybodyhere;
> ?>
>
> 5. Include your element with the proper caching parameter into your
> layout template. E.g.:
>
>  Who is online:  echo $this->renderElement('whoisonline', array('cache' => array('time'=>
> "+5 minutes",'key'=>'unique value')));
> ?>
>
> At the moment it looks ok. I will test it now over some time.
>
> Anja

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Templates

2009-01-07 Thread WyriHaximus

Like tekomp says try oswd or otherwise a google search for "opensource
web design" will give you a nice set of sites to check out:
http://www.google.com/search?q=opensource+web+design&btnG=Search&hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=YSp&sa=2
Depending on how good you are at this you can even convert wordpress
(or any other system for that matter) designs to cakephp:
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=free+wordpress+designs

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---