NoSQL database and datasources

2012-07-27 Thread Ziki
Hi, I am past few days to set up CouchDB and Cake but without success.
I used all available datasource for CouchDB and nothig is happening. I
am using Cake 2.1, some of data sources aren't implemented for 2.0+ so
my question is, is there any working datasource for any NoSQL database?

-- 
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


How to exclude user agent form token generating?

2011-10-21 Thread Ziki
Hi, I am working on same caching and I need to disable in form token
generating UserAgent, is this possible, and from form checking also?

-- 
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: Performance of CakePHP 2.0

2011-03-23 Thread Ziki
My site is not so slow, but if I will have a lot of users this will be
a problem. Here is image http://dl.dropbox.com/u/905349/loadtimer.png
of timer for loading the site. Only problem is cake core, and because
of this I am asking is 2.0 version faster.

On 23 ožu, 14:42, MaxDao max...@gmail.com wrote:
 I have same question about performance, and can't wait till we have
 more stable version to test it. I have cakephp 1.1 project willing to
 upgrade, however 1.3 is slower than 1.1

 On 22 Бер, 15:19, Ziki zixw...@gmail.com wrote:

  Hi,

  I am developing complex website (business and social network) with
  1.3.6 version and it is pretty slow, maybe it is because my server and
  I did all tips and tricks (lazy loader, APC caching, caching queries,
  views) but generally it is slow and use more memory especially on the
  loading cake files. My question is would 2.0 version will be faster if
  I start using it, and does anybody has experienced performance
  improving? I think 2.0 should be faster :)

  Any comments are welcome.

-- 
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: Performance of CakePHP 2.0

2011-03-23 Thread Ziki
Currently it is on shared hosting with eAccelerator, HTML caching can
be provided for few pages, but with other it is not possible because
content is full dynamically and it will be changed all the time. This
web application is complex, because its complexity I choose Cake.


On 23 ožu, 19:49, Ma'moon phpir...@gmail.com wrote:
 1) Have you tried using a bytecode cacher? i think that you should consider
 using APC or Xcache if you are not using one of them already!
 2) Have you considered using HTML Caching for your site, this will
 seriously help reducing server processing!

 On Wed, Mar 23, 2011 at 1:28 PM, Ziki zixw...@gmail.com wrote:
  My site is not so slow, but if I will have a lot of users this will be
  a problem. Here is imagehttp://dl.dropbox.com/u/905349/loadtimer.png
  of timer for loading the site. Only problem is cake core, and because
  of this I am asking is 2.0 version faster.

  On 23 ožu, 14:42, MaxDao max...@gmail.com wrote:
   I have same question about performance, and can't wait till we have
   more stable version to test it. I have cakephp 1.1 project willing to
   upgrade, however 1.3 is slower than 1.1

   On 22 Бер, 15:19, Ziki zixw...@gmail.com wrote:

Hi,

I am developing complex website (business and social network) with
1.3.6 version and it is pretty slow, maybe it is because my server and
I did all tips and tricks (lazy loader, APC caching, caching queries,
views) but generally it is slow and use more memory especially on the
loading cake files. My question is would 2.0 version will be faster if
I start using it, and does anybody has experienced performance
improving? I think 2.0 should be faster :)

Any comments are welcome.

  --
  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


Performance of CakePHP 2.0

2011-03-22 Thread Ziki
Hi,

I am developing complex website (business and social network) with
1.3.6 version and it is pretty slow, maybe it is because my server and
I did all tips and tricks (lazy loader, APC caching, caching queries,
views) but generally it is slow and use more memory especially on the
loading cake files. My question is would 2.0 version will be faster if
I start using it, and does anybody has experienced performance
improving? I think 2.0 should be faster :)

Any comments are welcome.

-- 
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: Performance of CakePHP 2.0

2011-03-22 Thread Ziki
We are now still in developing phase, we do not have users. Maybe for
2 months it will be in beta version. Do you have any experience in 2.0
performance?

On 22 ožu, 14:40, Stephen step...@ninjacodermonkey.co.uk wrote:
 Not quite about speed, but I wouldn't really switch to 2.0 until it's stable
 and officially released - especially if your website contains a large amount
 of users

 On 22 March 2011 13:19, Ziki zixw...@gmail.com wrote:



  Hi,

  I am developing complex website (business and social network) with
  1.3.6 version and it is pretty slow, maybe it is because my server and
  I did all tips and tricks (lazy loader, APC caching, caching queries,
  views) but generally it is slow and use more memory especially on the
  loading cake files. My question is would 2.0 version will be faster if
  I start using it, and does anybody has experienced performance
  improving? I think 2.0 should be faster :)

  Any comments are welcome.

  --
  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

 --
 Kind Regards
  Stephen

  http://www.ninjacodermonkey.co.uk

-- 
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: Perfmance, large number of users and CakePHP

2010-12-26 Thread Ziki
Ok, thank you for your answers.

I am interesting if someone have experience in CakePHP powered site
and it has a large number of users. I know that performance depends on
servers hardware and optimizing queries. I am interesting that someone
approximately can tell me if I have 10 000 users online (logged in),
can I have that site powered with CakePHP and if I can, will that
hardware be enough (previously described). I think that I will not
have more than 5 000 users logged in, but I am just curious.

I know that CakePHP is slow framework, and I know tips how to improve
performance. But I dont know how many users can handle, that
processing of request will be  1 second.

I will not have new facebook, neither so big application, the concept
of site design will be like facebook, with lot of ajax request and
hits. My site couldn't compare with facebook.

I like CakePHP, and I am in love with in, I tried to use others but
always I come back to Cake :-)

I hope you understand my question, and topic of this discussion.


On 25 pro, 20:56, Ryan Schmidt google-2...@ryandesign.com wrote:
 On Dec 25, 2010, at 13:34, Ziki wrote:

  No i will not have so many users like facebook, I will about 50 000 -
  500 000 users. But application will be similar in the concept like
  re interesting topics, but probably the only ones that are on-topic for 
  this list are the ones that directly relate to CakePHP. For example, if 
  there is a query that CakePHP generated that you found is slowing down your 
  app, maybe someone here can help you find better parameters to pass to 
  CakePHP to make it generate a more-efficient query. Or if you have 
  questions about CakePHP's various caching mechanisms that aren't adequately 
  explained in the book, perhaps we can help with that. facebook, with lot of 
  ajax request end so on. So, ifa I have 10 000
  users logged in how strong server must be?

 I don't think anyone here can provide you with answers based on your brief 
 overview. And I can't speak for others here, but even if you provided much 
 more detailed information about the performance characteristics of your web 
 app, I don't think I would be likely to be able to provide you an answer, 
 nor, honestly, particularly interested.

 Your web server can be tuned in various ways to make it faster at serving 
 static files. Your database server performance can be improved by tweaking 
 its cache settings, adding memory, analyzing your queries to see why they 
 might be slow, certainly adding indexes on columns that are searched, etc. 
 CakePHP can further cache your data, or even entire generated pages. As was 
 said, Facebook is so very large that it doesn't fit on a single server; it 
 uses thousands of them. If you're planning on approaching Facebook's size, 
 you'll want to think about how to scale out your size beyond a single server. 
 You can scale in several directions independently: more web servers, more PHP 
 servers, more database servers. While it's great to be able to add servers to 
 immediately increase your available processing power, you'll want to be 
 constantly analyzing your app to see where the bottlenecks are, so that you 
 can make improvements to those areas to make better use of the processing 
 power you have.

 All these are interesting topics, but probably the only ones that are 
 on-topic for this list are the ones that directly relate to CakePHP. For 
 example, if there is a query that CakePHP generated that you found is slowing 
 down your app, maybe someone here can help you find better parameters to pass 
 to CakePHP to make it generate a more-efficient query. Or if you have 
 questions about CakePHP's various caching mechanisms that aren't adequately 
 explained in the book, perhaps we can help with that.

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: Perfmance, large number of users and CakePHP

2010-12-26 Thread Ziki
So there is no any answer for me. I do not wont precize answer just
aproximatly.

But, tnx guys anywhere.

P.S. I will not have new facebook, but with some similarity.

On 26 pro, 22:01, CapeJag franktowl...@gmail.com wrote:
 You are persistent for sure.  I also agree with others who have responded to
 you about specific sizing for your application.  I have done this
 professionally for dozens of years (for big money) - it takes a lot more
 information than just number of connections to determine the size of your
 server 'farm'.  

 Maybe folks could call out the 'largest' website they are currently aware of
 and provide a few metrics along with the site URL.

 Wow, I do hope you make another fortune like Mark did, good luck!

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


Perfmance, large number of users and CakePHP

2010-12-25 Thread Ziki
Hi,
I am developing one big applicaion, it will be similar to facebook,
with lot of users in same time and lot of ajax requests and etc. you
know how many queries cake generate.

So, my question is, can CakePHP handle something like this with 10 000
logged users in same time?

Will it be enough dedicated server with:

Intel® Core™
i7-980X
Hexacore incl.
Hyper-Threading Technology

24 GB DDR3 RAM

1x 1,5 TB SATA II
1x 300 GB SAS4-Port Hardware-RAID Controller imperative
1x 120 GB SSD

or how many users it can handle with these configuration?

Tnx

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: Perfmance, large number of users and CakePHP

2010-12-25 Thread Ziki
No i will not have so many users like facebook, I will about 50 000 -
500 000 users. But application will be similar in the concept like
facebook, with lot of ajax request end so on. So, ifa I have 10 000
users logged in how strong server must be?

On 25 pro, 19:17, AD7six andydawso...@gmail.com wrote:
 Hi,

 On Dec 25, 4:16 pm, Ziki zixw...@gmail.com wrote:

  Hi,
  I am developing one big applicaion, it will be similar to facebook,

 Tip: the above description is meaningless and if you're using that as
 a project description ... well, good luck.

  with lot of users in same time and lot of ajax requests and etc. you
  know how many queries cake generate.

 I do :). very few with a cold cache or 0 with 100% cache hits.



  So, my question is, can CakePHP handle something like this with 10 000
  logged users in same time?

 The framework you choose is obviously a factor when designing an app,
 but given there have been numerous large-number-of-user apps built
 with CakePHP the answer to that is: yes.



  Will it be enough dedicated server with:

  Intel® Core™
  i7-980X
  Hexacore incl.
  Hyper-Threading Technology

  24 GB DDR3 RAM

  1x 1,5 TB SATA II
  1x 300 GB SAS4-Port Hardware-RAID Controller imperative
  1x 120 GB SSD

 Facebook has 250 million users, and has some 30K servers (reference
 lmgtfy.com) let's say it's designed to work with 1% of them logged in
 at once. For your app to succeed and be like facebook with 1 server,
 means facebook is running only some 100s of servers. In other words
 your description and question implies that facebook can run with only
 1% of the servers they NEED to run.

 So either your app needs to do 1% of what you're saying you want it to
 do (which is extremely vague) or you need 100x more servers (and
 obviously a team experienced in working with multi server apps).



  or how many users it can handle with these configuration?

 If you're asking: 1.

 If you have better information, such as load and stress test data for
 you app running on that server - I'd trust that better than my
 estimate. But in the absense of such data, 1 is your golden
 number ;)

 hth,

 AD

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


Email template in plugin

2010-11-24 Thread Ziki
Hi,
i have plugin and I want to have into my plugin's folder template for
emails, I try to put it into /plugin/plugin_name/views/layouts/email/
html/plugin_name.ctp and I have

$this-Email-template = 'plugin_name';
$this-Email-sendAs = 'html';

And I cannot load that my template in email!

What to do? Where to put plugins email template, or what?

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


Select options after validate are not displayed

2010-05-30 Thread Ziki
I have that problem that after validation, when it is again diplayed
my form with error messages, there are no options in select fields. It
is because options in select filds are variables declared and defined
in controller action, so after validation thoose variables aren't
declared and defined. What should I do?

This is controllers variables:

$acctypes = $this-Acctype-find('list',array(
'fields' = array('id','title')
));
$cities = $this-City-find('list',array(
'fields' = array('id','title')
));
$facilities = $this-Facility-find('list',array(
'fields' = array('id','title')
));
$this-set(compact('cities','acctypes','facilities'));

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: Select options after validate are not displayed

2010-05-30 Thread Ziki
No, same controller, same action.

On 30 svi, 21:27, Ed Propsner crotchf...@gmail.com wrote:
 Are you submitting the form to a different controller or action other than
 the one where you are setting your select values?

 - Ed

 On Sun, May 30, 2010 at 2:22 PM, Ziki zixw...@gmail.com wrote:
  I have that problem that after validation, when it is again diplayed
  my form with error messages, there are no options in select fields. It
  is because options in select filds are variables declared and defined
  in controller action, so after validation thoose variables aren't
  declared and defined. What should I do?

  This is controllers variables:

  $acctypes = $this-Acctype-find('list',array(
                                 'fields' = array('id','title')
                         ));
  $cities = $this-City-find('list',array(
                                 'fields' = array('id','title')
                         ));
  $facilities = $this-Facility-find('list',array(
                                 'fields' = array('id','title')
                         ));
  $this-set(compact('cities','acctypes','facilities'));

  Check out the new CakePHP Questions sitehttp://cakeqs.organd 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.comcake-php%2bunsubscr...@googlegroups.comFor
   more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en

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: Select options after validate are not displayed

2010-05-30 Thread Ziki
Yeah, it was problem in something like that. Big thanks!!

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: HABTM and 1.3 version

2010-05-19 Thread Ziki
part of used model Accommodation
echo $form-input(rates,array(type = text));
part of HABTM model
echo $form-input(Facility.Facility));

and I used $this-save() not saveAll

and I tried lot of things but without succes, now I made it by myself,
i just put in HABTM table that what i need and that is that, but that
is not good solution :(

On 19 svi, 09:13, John Andersen j.andersen...@gmail.com wrote:
 Please provide more information!
 What does you data structure look like just before you are saving
 them?
 How are you trying to save the data - save or saveAll?
 Enjoy,
    John

 On May 18, 7:35 pm, Ziki zixw...@gmail.com wrote:



  I have problems with HABTM associations, i did everything like it is
  recommended, and try other behaviors for inserting HABTM, but nothing
  of that not working. I am using that in my plugin, if I use 
  thishttp://bakery.cakephp.org/leafs/view/23orthishttp://bakery.cakephp.org/articles/view/add-delete-habtm-behaviorI
  cannot use any of those functions, and error is same, it says that;
  SQL Error: 1064: You have an error in your SQL syntax; check the
  manual that corresponds to your MySQL server version for the right
  syntax to use near 'addAssoc' at line 1 [CORE/cake/libs/model/
  datasources/dbo_source.php, line 666]

  Query: addAssoc

  And I tried at 100 ways, but all the time reuslt is same.

  I dont know what to do anymore, I have everything ok, and models, and
  tables, and I just want to add data in HABTM tables.

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 
  athttp://groups.google.com/group/cake-php?hl=en

 Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
 athttp://groups.google.com/group/cake-php?hl=en

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: HABTM and 1.3 version

2010-05-19 Thread Ziki
Oh I found mistakes, it was with name of model, it was missing one M
in Accommodation :)) know editing and adding works


But I have another question, how to add one or more field in view file
which is  from HABTM table, so if I want to add in that HABTM table
status field, how to make it in view file, like checkbox?

I have model

Accommodation
Facilities
AccommodationsFacility
id,accommodation_id,facility_id,status

How to add this status field, like checkbox?

On 19 svi, 15:40, John Andersen j.andersen...@gmail.com wrote:
 What I meant by the structure is to use debug($this-data) and then
 post the result here, so we can see the structure and tell whether it
 is a valid one for HABTM. Can you do that?
 Enjoy,
    John

 On May 19, 3:29 pm, Ziki zixw...@gmail.com wrote:



  part of used model Accommodation
  echo $form-input(rates,array(type = text));
  part of HABTM model
  echo $form-input(Facility.Facility));

  and I used $this-save() not saveAll

  and I tried lot of things but without succes, now I made it by myself,
  i just put in HABTM table that what i need and that is that, but that
  is not good solution :(

  On 19 svi, 09:13, John Andersen j.andersen...@gmail.com wrote:

   Please provide more information!
   What does you data structure look like just before you are saving
   them?
   How are you trying to save the data - save or saveAll?
   Enjoy,
      John

   On May 18, 7:35 pm, Ziki zixw...@gmail.com wrote:

I have problems with HABTM associations, i did everything like it is
recommended, and try other behaviors for inserting HABTM, but nothing
of that not working. I am using that in my plugin, if I use 
thishttp://bakery.cakephp.org/leafs/view/23orthishttp://bakery.cakephp.or...
cannot use any of those functions, and error is same, it says that;
SQL Error: 1064: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'addAssoc' at line 1 [CORE/cake/libs/model/
datasources/dbo_source.php, line 666]

Query: addAssoc

And I tried at 100 ways, but all the time reuslt is same.

I dont know what to do anymore, I have everything ok, and models, and
tables, and I just want to add data in HABTM tables.

Check out the new CakePHP Questions 
sitehttp://cakeqs.organdhelpotherswith 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 athttp://groups.google.com/group/cake-php?hl=en

   Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
   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 
   athttp://groups.google.com/group/cake-php?hl=en

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 
  athttp://groups.google.com/group/cake-php?hl=en

 Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
 athttp://groups.google.com/group/cake-php?hl=en

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


HABTM and 1.3 version

2010-05-18 Thread Ziki
I have problems with HABTM associations, i did everything like it is
recommended, and try other behaviors for inserting HABTM, but nothing
of that not working. I am using that in my plugin, if I use this
http://bakery.cakephp.org/leafs/view/23 or this
http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior I
cannot use any of those functions, and error is same, it says that;
SQL Error: 1064: You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'addAssoc' at line 1 [CORE/cake/libs/model/
datasources/dbo_source.php, line 666]

Query: addAssoc

And I tried at 100 ways, but all the time reuslt is same.

I dont know what to do anymore, I have everything ok, and models, and
tables, and I just want to add data in HABTM tables.

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


CakePHP ERA modeler

2010-05-13 Thread Ziki
Hello, once I have been finded ERA modeler especialy for CakePHP
conventions, and now I can't find that website, does anybody know what
is URL of that site or is there any similar?

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


Plugin and css links

2010-04-26 Thread Ziki
Hi,

I have images in img folder in webroot of my plugin, but images aren't
load when links from css file also in plugin. This is problem when
making theme. I must put img in default img folder of site, not under
plugin webroot folder.

Is there solution?

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: Plugin and css links

2010-04-26 Thread Ziki
yes, but when I have in my css file something like this:

background: url(/img/bg.gif);

that can not be loaded from plugin img directory, problem is just
links in css files.

On 27 tra, 03:23, jacmoe jac...@mail.dk wrote:
 Treat the plugin/webroot the same as app/webroot:
 Images in img, css in css, javascript in js, etc.

 Did you put them in the 'img' directory ?

 On Apr 27, 12:21 am, Ziki zixw...@gmail.com wrote:

  Hi,

  I have images in img folder in webroot of my plugin, but images aren't
  load when links from css file also in plugin. This is problem when
  making theme. I must put img in default img folder of site, not under
  plugin webroot folder.

  Is there solution?

  Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 
  athttp://groups.google.com/group/cake-php?hl=en

 Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
 athttp://groups.google.com/group/cake-php?hl=en

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


How to attach model association belongsTo on the fly?

2010-04-23 Thread Ziki
How to attach model association belongsTo on the fly? I ama developing
plugin so I need that, to attach somewhere in my component.

Help please

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: Validation error messages doesnt shown up

2009-12-21 Thread Ziki
I figure it, I must have add.ctp if I want to show validation errors,
I redirect it on index.ctp but, when redirecting errors won't show
up.

On Dec 20, 1:21 pm, peterchenadded peterchenad...@gmail.com wrote:
 Firstly, I think the second input Question.pitanje should be
 Question.opis Since i don't understand the language it is only an
 educated guess.

 I tested your code out with the form view in views/questions/add.ctp,
 the controller function in controllers/questions_controller.php and
 the model in models/question.php and it did work as expected!

 You should try to fix the

 Notice (8): Undefined variable: layout [APP/views/elements/block.ctp,
 line 17]

 Fatal error: Call to a member function filter() on a non-object in /
 home/zakogagl/public_html/app/views/elements/block.ctp on line 17

 problem first though.

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


Does CakePHP block IP

2009-12-21 Thread Ziki
After I install CakePHP, my IP is often blocked and it is in declined
list? Does CakePHP make changes in mod_security and put them my ip, or
what?

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: Does CakePHP block IP

2009-12-21 Thread Ziki
Does CakePHP make changes by default if it might be XSS attack and put
IP in block list with mod_security?

On Dec 21, 3:30 pm, AD7six andydawso...@gmail.com wrote:
 On 21 dic, 15:10, Ziki zixw...@gmail.com wrote: After I install CakePHP, 
 my IP is often blocked and it is in declined
  list? Does CakePHP make changes in mod_security and put them my ip, or
  what?

 what.

 hth,

 AD

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


Validation error messages doesnt shown up

2009-12-20 Thread Ziki
Hi,
i have a huge problem, validation messages doesnt shown up in my form
when I submit with wrong data. This is my form view:

div  id=stylized class=myform
h1?php __('Dodaj novo pitanje'); ?/h1
pOsmislite. napišite i postavite/p

   ?php echo $form-create('Question', array('url' = array(
'controller' = 'questions',
'action' = 'add'
),
'class' = 'yform'));?

?php
echo $form-input('Question.ime', array('label' =
'Imespan class=smallicIme ili nadimak/span' ));
echo $form-input('Question.pitanje', array('label' =
'Pitanjespan class=smallicOsmislite konkretno pitanje/
span' ));
?

?php echo $form-end(array('label' = __('Postavi pitanje',
true), 'class' = 'button')); ?
div class=spacer/div
  /div

and validation is:

var $validate = array(
'ime' = array(
'rule' = 'notEmpty',
'message' = 'Ovo polje ne smije biti prazno.',
),
'opis' = array(
'rule' = 'email',
'message' = 'Molimo unestie ispravnu e-mail adresu.',
),
);

and function in controller is:
function add(){
 if (!empty($this-data)) {
if ($this-Question-save($this-data)) {
$this-Session-setFlash(__('Pitanje je spremljeno.',
true));
$this-redirect(array('action' = 'index'));
} else {
$this-Session-setFlash(__('Pitanje nije spremljeno.
Pokušajte ponovo.', true));
}
}
}

I tried hunderd of combinations but i can't figurate what I'm duing
wrong.

When form are submited I got some strange error, btw. layouts going
crazy :(

form is here http://www.zakogaglasati.com/questions/

please help

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: Poll component

2009-12-09 Thread Ziki
I know, but i don't have time to write it. Newer mind. tnx

On 9 pro, 13:16, euromark dereurom...@googlemail.com wrote:
 its not that hard to write one on your own

 you need
 - polls
 - poll_votes
 - poll_options

 but i would not do it as a component but as a controller/model (with
 its own admin panel etc)
 and just provide some basic elements for other views

 On 9 Dez., 04:11, Ziki zixw...@gmail.com wrote:

  Hi, is there any poll component or some php Poll code which is CakePHP
  friendly?

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


Poll component

2009-12-08 Thread Ziki
Hi, is there any poll component or some php Poll code which is CakePHP
friendly?

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


which CMS should i use?

2009-10-23 Thread Ziki

Hi, i have my own CMS which was developed before i start using
CakePHP, now i don't want to redeveloped my CMS for CakePHP, i just
want to start with another one, which is simple and that i can change
them on my own way. I must make two simple sites, and it must be
quick, and i need CMS for them, and one for developing.

I just need some simple and good CMS :)

Tnx
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



View image from cache directory

2009-10-08 Thread Ziki

Hi,

how to view image from cache folder, i have url in database for the
image, and when i want them view i got error.

I have link like this:  /home/hrvatski/public_html/cake/app/tmp/cache/
thumbs/
e6b3c3fca1c6c496727147bb07e6595b_59de3ade3f1df7e79525167bd617bfb8.jpg

i put them into img src= /home/hrvatski/public_html/cake/app/tmp/
cache/thumbs/
e6b3c3fca1c6c496727147bb07e6595b_59de3ade3f1df7e79525167bd617bfb8.jpg /


doesn't work,

i put img src= /app/tmp/cache/thumbs/
e6b3c3fca1c6c496727147bb07e6595b_59de3ade3f1df7e79525167bd617bfb8.jpg /


but still error Missing controller.

I know what cause that error, but how to view direct image from cache
folder?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Layout and design

2009-09-25 Thread Ziki

Hi,

I'm new in cake, i have question about designing, and creating layout
for my site,

my site is on this domain http://www.hrvatskiportali.com/HPredizajn/
an this isn't made by CakePHP this is my own made. I want to create
this same design with jQuery and other stuff in CakePHP but don't know
where to start. I read Manual, and i know a lot of cake, but that how
to make first step with creating design a don't know.

I made ERA model and datebase with cake convention :)

I want to create layout (like it is now) which will have
1) header section
2) content section
 - left side is content (2 columns)
 - right side is sidebar with widgets (elements)
3) footer section

my question is, how to create this layout where i will put some
widgets in sidebar dependent of users preferences, and content on the
left side?

Please help!!

P.S. I'm from  Croatia and my English maybe isn't very good, I
apologize for that :)

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---