tag:blogger.com,1999:blog-34506367528594289202024-03-12T16:37:33.451-07:00Media website professionalZendFramework, Php & Mysql, Jquery, javascript, Css, Html...Unknownnoreply@blogger.comBlogger21125tag:blogger.com,1999:blog-3450636752859428920.post-86465979880163713122013-11-20T10:05:00.002-08:002013-11-20T10:38:13.355-08:00Zend framework 2 file upload example
- Now we will learn about how to upload files one file or multiple files at a time before we come to the next song on Add - Delete - Edit
- First, we will create a new name CONTROLLER /module/Admin/src/Admin/Controller/UploadController.php read as follows:
<?php
namespace Admin\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-3450636752859428920.post-42298132060300958802012-12-06T14:08:00.000-08:002013-07-07T08:31:47.734-07:00JavaScript and CSS Helper Class - Zend Framework 2 (ZF2)
Greetings Programs,
In Zend Framework 1.0 I used a CSS and JavaScript loader. This allowed me load CSS and JavaScript based on an action and a controller. It also allowed me to load common CSS and JavaScript required for my headers, footers, and other common components that might be found on a page. I wanted to try and repeat this in ZF2. In this post I will walk through how I accomplished thisUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-63881092607128361802012-12-03T13:11:00.000-08:002013-07-07T08:32:54.140-07:00Validate a Check Box - Zend Framework 2 (ZF2)
If you have a registration form with a terms and conditions check box you'll probably want to validate that it is checked. This can be accomplished by using the Digits Validator.
Start by defining your input as follows: <![CDATA[ //register.php (found in my User module at module\User\src\User\Form) $this->add(array( 'type' => 'Zend\Form\Element\Checkbox', 'name' => 'terms',Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-3450636752859428920.post-22742564367666863192012-11-18T00:12:00.001-08:002012-11-18T00:12:09.785-08:00What is the Zend Framework ?Zend Framework (ZF) is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.
The Zend Framework is a simple, straightforward, open-source software framework for PHP 5 designed to eliminate the tedious details of coding and let you focus on the big picture. Its strength is in its highly-modular MVC design, making your code more Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-25320545629132398342011-10-20T18:13:00.000-07:002013-07-07T08:01:36.895-07:00Zend_Json_Server and JSON-RPC 2.0
Zend_Json_Server and JSON-RPC 2.0
The 4 available parameters are:
+ jsonrpc – the version you are using; I’m using 2.0.
+ method – the name of the method you want to call in the server.
+ params – object of parameters your method needs. If you don’t need any, don’t send this param.
+ id – an identifier (anything you want) that will be sent to and from the server for this request.
I’m using Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-18458304755582323872011-10-20T09:56:00.000-07:002013-07-07T08:03:04.517-07:00word-wrap, word-break URLs and Text Content with CSS
word-wrap, word-break URLs and Text Content with CSS
To wrap long URLs, strings of text, and other content, just apply this carefully crafted chunk of CSS code to any block-level element (e.g., perfect for <pre> tags):
.textarea-code{
width: 570px;
color: green;
min-height: 30px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius:Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-56851888094859141872011-10-19T09:50:00.000-07:002011-10-19T09:50:46.189-07:00Rotate with CANVAS JavaScript in HTML5
.textarea-code{
overflow-x: auto;
width: 570px;
color: green;
min-height: 30px;
readonly: readonly;
background-color: #222;
max-height: 1200px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-90531156019348822852011-10-17T07:20:00.000-07:002011-10-17T07:20:50.920-07:00Zend_Controller_Front
1.getInstance() is used to retrieve a front controller instance
2.setControllerDirectory() is used to tell the dispatcher where to look for action controller class files
3.addControllerDirectory() is used to add a module name, it will set the directory for the default module - overwriting it if it already exists.
4.getControllerDirectory() is used to Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-3623506599147496122011-10-16T07:43:00.000-07:002011-10-16T07:44:16.237-07:00Using Zend_Layout with the Zend Framework MVCsimple example of zend_layout.
First we define some defined default.
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-49375993778927685782011-10-16T02:04:00.000-07:002011-10-16T02:04:17.094-07:00Read and write configuration files the format xml with Zend_Config
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-51902755442538666992011-10-15T20:20:00.000-07:002011-10-15T20:20:13.752-07:00SEO your blogger by Change the Title Tags for your Blog
.textarea-code{
width: 600px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 800px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
Go to Layout>edit HTML in your Blogger dashboard.
Search for this tag: <data:blog.pageTitle/>
Replace this tag with the following:
<b:if cond='data:blog.pageType == "index"Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-25451323772188459272011-10-11T07:33:00.000-07:002011-10-11T07:35:56.779-07:00Configuration multi modules in Zend Framework
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-41553018822358845432011-10-09T10:39:00.000-07:002011-10-09T10:39:01.379-07:00Video Facebook PlatformHey Facebook Developers! This video is the first in a new series of how-to videos we'll be doing to show you how to make your web site or application more social with Facebook Connect.
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-54035803677634087962011-10-09T09:14:00.000-07:002011-10-16T02:31:44.979-07:00Read and write configuration files the format ini with Zend_Config
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-51214389856371658872011-10-09T02:20:00.000-07:002011-10-11T07:36:52.672-07:00Zend_Translate and Error message
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-7032856285640433032011-10-07T04:11:00.000-07:002011-10-07T04:11:20.609-07:00backup database mysql automatic with mysqldump
Dumping structure and contents of MySQL databases and tables.
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
-Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-75782898435203493022011-10-06T09:08:00.000-07:002011-10-11T07:37:00.914-07:00Advanced Array function
No.
Function
Defined
1
print_r ($
array)
View
the structure of the array
2
count ($
array)
Returns
the integer value is the number of array elements
3
array_values ($
array)
Returns
an array constant is the element value is the value derived
from elements of the array $ Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-10336019742914934022011-10-06T08:33:00.000-07:002011-10-11T07:37:14.299-07:00Configs project ZendFramework
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-15140780186429807712011-10-06T07:32:00.000-07:002011-10-11T07:37:27.828-07:00Zend_Controller
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3450636752859428920.post-61995977971890885902011-10-05T08:51:00.000-07:002013-11-20T10:19:30.229-08:00Multi layouts for Zend Framework
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
1. Create a directory \ templates as shown below:
2. Create index.phtml file in the folder \application\templates\admin with the following contents:
<?php echo $this->doctype(); ?>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-3450636752859428920.post-79810206079070731452011-10-05T07:25:00.000-07:002011-10-11T07:37:55.969-07:0019 steps to setting and configure the Zend Framework.
.textarea-code{
width: 570px;
color: green;
min-height: 50px;
readonly: readonly;
background-color: #222;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.textarea-code-out{
width: 570px;
color: #000;
min-height: 50px;
readonly: readonly;
background-color: #fff;
max-width: 600px;
max-height: 800px;
-moz-border-radius: 3px;
Unknownnoreply@blogger.com0