الصفحة الرئيسية
المزايا
المشروع
روابط مفيدة
تنزيل
الأسئلة الشائعة
النسخة القديمة

CakePHP Framework:

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM, CakePHP reduces development costs and helps developers write less code. For more information please check CakePHP website and Blog Example.
 

Ar-PHP Component:

This tutorial show how to get CakePHP Component wrapper class created to take advantage of the functionality provided by Ar-PHP library.
 

Step 1: Download and unzip archive:

Download an Ar-PHP archive (here) and unzip the archive into the directory /app/vendors/arabic/

Note:
Only the contents in the
/app/vendors/arabic/Arabic/ folder and
/app/vendors/arabic/arabic.php file are necessary, so you can remove everything else when using Ar-PHP in a production environment.


 

Step 2: Create Ar-PHP component:

Filename: /app/controllers/components/arabic.php
Component Class: view code


 

Step 3: Use the component inside a controller:

Filename: /app/controllers/posts_controller.php
Controller Class: view code


 

Step 4: Create a test view

Filename: /app/views/posts/index.ctp
View Template: view code

إطار عمل CakePHP:

CakePHP هو إطار عمل للتطوير السريع بلغة PHP يقدم معمارية موسعة لتطوير وصيانة ونشر التطبيقات. وتستخدم أنماط تصميم مثل MVC و ORM، تخفض CakePHP تكاليف التطوير وتساعد المطورين على كتابة شيفرة برمجية أقل. لمزيد من المعلومات الرجاء زيارة موقع CakePHP الرسمي و مثال المدونة.


 

عنصر Ar-PHP:

يظهر هذا الدليل التعليمي كيف يمكن الحصول على صنف مغلف لعنصر CakePHP أنشئ للحصول على الوظائف المقدمة بواسطة مكتبة Ar-PHP.
 

الخطوة الأولى: حمل وفك ضغط الحزمة

حمل حزمة Ar-PHP (هنا) فك ضغط الحزمة ضمن المجلد التالي
/app/vendors/arabic/

ملاحظة:
فقط محتويات المجلد
/app/vendors/arabic/Arabic/ والملف
/app/vendors/arabic/arabic.php ضرورية، لذا باستطاعتك حذف أي شيء آخر عندما تستخدم Ar-PHP في بيئة إنتاجية.


 

الخطوة الثانية: إنشاء عنصر Ar-PHP

الملف: /app/controllers/components/arabic.php
صنف العنصر: عاين الشيفرة البرمجية


 

الخطوة الثالثة: استخدم العنصر داخل المتحكم

الملف: /app/controllers/posts_controller.php
صنف المتحكم: عاين الشيفرة البرمجية


 

الخطوة الرابعة: إنشاء إظهار تجريبي

الملف: /app/views/posts/index.ctp
قالب الإظهار: عاين الشيفرة البرمجية

Every solution breeds new problems.
كل حل ينتج مشاكل جديدة
Index | Features | ArPHP Project | Useful Links | Download | PHP4!!!

Copyright © 2006 - 2021 Khaled Al-Sham'aa. All Rights Reserved | Sourceforge.net | GitHub.com | Terms Of Use

 

  If not now when? If not you and me who else? | إن لم يكن الآن فمتى؟ إن لم تكن أنت وأنا فمن غيرنا؟